Code Monkey home page Code Monkey logo

Comments (7)

rlepinski avatar rlepinski commented on June 24, 2024

Right now we don't support waking the app up in the background, but would like to. I believe this requires isolates but I will see what other options flutter supports.

from airship-flutter.

rakeshsalian039 avatar rakeshsalian039 commented on June 24, 2024

Sure, Please let me know. If there is any way I can handle.

from airship-flutter.

rlepinski avatar rlepinski commented on June 24, 2024

@rakeshsalian039 I dug into the firebase implementation and they are indeed using an isolate. We attempted this in the past but it was a bit messy - https://github.com/urbanairship/airship-flutter/pull/84/files

I will try again this week on isolate support, hopefully in a way that wont completely change the plugin usage.

from airship-flutter.

rlepinski avatar rlepinski commented on June 24, 2024

Not in 5.3.0 but will target the next release. Most likely will require breaking APIs so probably a 6.0.0 release.

from airship-flutter.

rakeshsalian039 avatar rakeshsalian039 commented on June 24, 2024

So what is the timeline for 6.0.0 release? This is critical for one of the feature we have implemented.

from airship-flutter.

rlepinski avatar rlepinski commented on June 24, 2024

@rakeshsalian039 We are working on it now. Give us a few more days to get a better idea when the work will be done.

As a workaround, you could use both Airship and the firebase plugin. With firebase you can use the myBackgroundMessageHandler even for Airship pushes. The only thing you would have to do is extend the firebase messaging service from the firebase plugin, call through to airship, and register the new service at a higher priority.

from airship-flutter.

rlepinski avatar rlepinski commented on June 24, 2024

Released in 5.4.0:

Future<void> backgroundMessageHandler(
    Map<String, dynamic> payload,
    Notification? notification) async { 
  // Handle the message
  print("Received background message: $payload, $notification");
}

void main() {
  Airship.setBackgroundMessageHandler(backgroundMessageHandler);
  runApp(MyApp());
}

from airship-flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.