Comments (7)
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.
Sure, Please let me know. If there is any way I can handle.
from airship-flutter.
@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.
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.
So what is the timeline for 6.0.0 release? This is critical for one of the feature we have implemented.
from airship-flutter.
@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.
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)
- NoClassDefFoundError. HOT 7
- The size of the iOS installation package is abnormal HOT 3
- Update to Airship iOS 16.10? HOT 4
- Airship.onChannelRegistration is never called on iOS HOT 2
- iOS Notification Options support HOT 5
- Airship.activeNotifications not parsing on iOS HOT 3
- Airship.addEvent doesn't work if CustomEvent's value is null HOT 2
- iOS production key HOT 3
- Flutter 3.10.0 support HOT 1
- Airship setUserNotificationsEnabled malfunction on Android HOT 1
- iOS push messages in foreground not working HOT 6
- iOS app icon badge behaves inconsistently HOT 1
- Android device debug issue HOT 5
- Android notifications are not displayed as Heads-up notifications HOT 2
- Airship.push.iOS.resetBadge is not calling the correct method name HOT 2
- Calling Airship.push.iOS.resetBadge crashes the app HOT 1
- Airship.messageCenter.onDisplay not parsing DisplayMessageCenterEvent properly HOT 2
- Crash on launch when using FlutterEngineGroup HOT 3
- Not able to get a push notification on my iOS device from a TEST Airship project HOT 5
- Push Icon Not Appearing in Android Release Build HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from airship-flutter.