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
Background monitoring on Android #45
Comments
Hi @snadal What Android phone do you use? I use it at my daily office projects, some devices need to add some lines to enable background monitoring directly on Java/Kotlin code within Android project. |
Hi Alann, I am trying with a Pixel 2 and a very old Samsung Galaxy S4, among others. Could you please share the lines on your Java / Kotlin code? Thank you! |
Hello, Would you mind to share the lines you used to enable background monitoring on Android? Thanks! |
@alann-maulana I'm having the same issue and don't get monitoring events on either Android or iOS when the app has been terminated. I see that the https://pub.dev/packages/beacons package has support for background monitoring but it looks like it's been abandoned and no longer works properly... |
Hi, sorry for delaying response.. In Android, I'm implementing In iOS, from Estimote community :
Please read the full article here. You can put your iOS code at For both iOS and Android, you can silently send a push notification that trigger app to start scanning, if it is terminated. Sometimes I use all of them, sometimes only one or two of it. Find what best suite for your case. I hope this can helps. Regards. |
@alann-maulana Thanks for your response. Do you have any plans to provide some more concrete code examples for both platforms? I'm unfortunately pretty new to native app development, and while I have a decent grasp of Flutter, my knowledge doesn't extend much beyond that. I do appreciate the pointers in the right direction. |
@alann-maulana I am also stuck in beacon-scanning for Android and IOS while app is in background. |
Hi, |
maybe by migrating it to v2? #67 |
+1 @alann-maulana I'll glad to help you to migrate but my android native knowledge is pretty basic. :( |
Hello @alann-maulana, could you take some doubt on how is implemented the bootstrap notifier? |
Hi, after a few attempts I managed to implement the Custom Application class with bootstrap notifier. I'll try to make an explanation to help those who are having difficulty in this part. As soon as there's a time left, I'll post an example on github to make it easier to understand. In the AndroidManifest file, you must modify the "android:name" parameter. By default it is set to FlutterApplication, that would be something like "io.flutter.app.FlutterApplication".
And the androidManifest file will look something like this:
|
@Marcoslima016 I am facing the same issue, any update on whether you have posted that example somewhere? EDIT: I got what you did above working but it seems to disable the implementation I have in flutter, did you see this too? is the idea to implement the functionality in the |
hi @evanblasband, soon I put a complete example of an Android application working in the background. I'm busy, but I'm going to have some time to do it soon. |
Hi @Marcoslima016, I encountered the same issue as you. Could you please put a complete example as you mentioned? |
Yes Please
|
Hi @Marcoslima016, I encountered the same issue as you. Could you please put a complete example as you mentioned? |
Hi @Marcoslima016, I encountered the same issue as you. Could you please put a complete example as you mentioned? |
Hi!
I’ve tried to enable background monitoring on Android, as suggested on #40 adding that to the example app.
However, as soon as app goes to background, it stops receiving zone changes.
Do I need to add intent or something special to Android app for background beacon detection to work?
Thank you!
The text was updated successfully, but these errors were encountered: