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

Communication conflict with flutter_background_service library. #26

Closed
gkois opened this issue May 9, 2024 · 8 comments
Closed

Communication conflict with flutter_background_service library. #26

gkois opened this issue May 9, 2024 · 8 comments

Comments

@gkois
Copy link

gkois commented May 9, 2024

I would like to initially thank you for your excellent library.

In a project I am involved in, we want to use your library together with the flutter_background_service library.
We noticed that when the flutter background service is started, polar connects but never responds when calling

polar.sdkFeatureReady.firstWhere(...)

Attached bellow is a public repo with a sample project displaying the issue.

https://github.com/gkois/flutter_polar_issue.git

If you can provide any insight on what could be the problem, it would be of great help.

Thank you in advance.

@marthan94
Copy link

Hi! I faced the same issue! It would be perfect if we can find a solution! :)

@Rexios80
Copy link
Owner

Rexios80 commented May 9, 2024

What platform are you running on?

@gkois
Copy link
Author

gkois commented May 9, 2024

We are developing on Android 12.

@Rexios80
Copy link
Owner

Rexios80 commented May 9, 2024

I think the flutter_background_service isn't well supported so we've used the foreground service from flutter_local_notifications: https://github.com/MaikuB/flutter_local_notifications/blob/5375645b01c845998606b58a3d97b278c5b2cefa/flutter_local_notifications/example/lib/main.dart#L2415

We have had no issues running the polar plugin along side it.

@gkois
Copy link
Author

gkois commented May 10, 2024

Thanx for the recommendation. We will try flutter_local_notifications and I will come back with update if it works.

@Rexios80
Copy link
Owner

@gkois any luck?

@gkois
Copy link
Author

gkois commented May 21, 2024

@Rexios80 we managed to get it working on a demo app.
we are in the process of incorporating it to the main app.

thank you for your help.

@Rexios80
Copy link
Owner

What was the issue?

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

3 participants