OnNotificationOpened fired but not completely execute in release & debug mode
See original GitHub issueHello,
Version Number of Plugin: 2.1.3 Device Tested On: Samsung A5 2017 Android Nougat Simulator Tested On: Version of VS: 15.4.4 Version of Xamarin: 2.4.0.282 Versions of other things you are using:
Everything works fine for this plugin except when handling open notification in release & debug mode (for Android only atm, did not test for iOS)
I configured everything as documented (in mainActivity, mainApplication, process intent and so), listening to the OnNotificationOpened in the OnStart() Method :
CrossFirebasePushNotification.Current.OnNotificationOpened += async (s, p) =>
{
await PushNotificationService.ProcessReceivedPushNotificationAsync(p);
};
Update : the event seems to be fired but it seems that in release & debug when my ProcessReceivedPushNotificationAsync is called and execute it does not wait until end of task and just leave the handler before the end of the execution
This is a dataMessage with ids stored in the Data Dictionary<>.
Wanted behavior : When a notification is received and the user clicks on it, process data sent and doing some work on the UI.
I can’t find out what’s going on as when I put break points it works, w/o it depends … sometimes it executes everything well, sometimes nothing happens …
Thanks
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
either OnStart or constructor should be good.
Okay, solved the prob … was a code of mine that was causing issue. I ran loadingService on UIThread but did not have any link with the prob too. Thanks for your fast support.