UnifiedPush / flutter-connector

UnifiedPush connector library for flutter
Apache License 2.0
31 stars 9 forks source link

No callbacks when AlarmManager is used #123

Open nucleus-ffm opened 1 year ago

nucleus-ffm commented 1 year ago

Thank you very much for your work. I would like to integrate unifiedPush into my app. In the process, I noticed a critical (for me) error.

It is not possible to use the AlarmManger with the android_alarm_manager_plus plugin and also the unifiedPush Flutter Connector. When adding the AlarmManger to the project, the callback functions e.g. "onNewEndpoint" are not called anymore.

How to reproduce the problem:

At the moment I have no idea where exactly the problem is and how to fix it.

p1gp1g commented 1 year ago

Do you know if the alarm manager works when UnifiedPush is initialized ?

p1gp1g commented 1 year ago

Following some tests, UnifiedPush does not work as soon as new FlutterEngine(context) (FlutterBackgroundExecutor.java#startBackgroundIsolate) is called