Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No callbacks when AlarmManager is used #123

Open
nucleus-ffm opened this issue Apr 22, 2023 · 2 comments
Open

No callbacks when AlarmManager is used #123

nucleus-ffm opened this issue Apr 22, 2023 · 2 comments

Comments

@nucleus-ffm
Copy link

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:

  • Create a new project with working Flutter connector (tested with the sample app).
  • add the android alarm manager plugin (tested with the version 2.1.2)
  • initialize the alarm manager
  • try to use the callback function, e.g. to register a new endpoint

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

@p1gp1g
Copy link
Member

p1gp1g commented May 8, 2023

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

@p1gp1g
Copy link
Member

p1gp1g commented May 8, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants