[ANDROID] Handling background messages from Dart code#464
[ANDROID] Handling background messages from Dart code#464efraespada wants to merge 6 commits intoOneSignal:mainfrom
Conversation
This reverts commit 3288829.
|
I'm frustrated that this feature is not implemented in SDK already! |
Getting this warning with Flutter v2.10.1 |
I've just tried to reproducing this, and the event handler fires. Could you share some info about your environment 👇🏽 ?
@apoorvpandey0 we shipped a fix for the issue you mentioned in PR #486 |
|
@iAmWillShepherd pl look into this issue for understanding my original question #557 |
bf90ab4 to
52b8389
Compare
|
Hey there, thanks for submitting this PR. Given how long this has been open, and the original issue appears fixed/non-reproducible, I'm going to close it. Thanks again! |
Test this PR with this:
I'm implementing OneSignal because of its reliability. Previously I used FCM where all the data push messages could be handled since the same (Dart) point.
Background notifications handling is not possible with OneSignal in Flutter right now.
I added the background handling functionality in Android (even if the app was swiped away).
Create a
NotificationServiceExtensionwithXNotificationServiceExtension:And implement it in the
AndroidManifest.xml:No current functionality has changed.
iOS (not completed)
The needed logic is the same as Android:
After some days I could create a
FlutterEnginein theOneSignalNotificationServiceExtensionbut there is a problem:OneSignalNotificationServiceExtensionin less than a second.Then the
OneSignalBackgroundchannel won't start.All I'm talking about has been coded and tested but not committed just to keep this PR clean with the Android changes.
This change is