Hi Mikael,
I started playing with com.evothings.ble plugin on phonegap build.
so far everything works well, one thing that came to mind is the startScan() function that returns the rssi and the address of the device.
what is being used behind the scenes, the monitor or the range methods?
would this function work in sleep mode? when I check, for instance, this:
device.rssi <= 0 && device.rssi>-70 && device.address=='F4:B1:77:C4:D8:74'
Thanks in advance, Aric.
Proximity background service ios & android
Re: Proximity background service ios & android
A short update,
I have succeeded setting the local notifications according the RSSI distance and
it works in the background and in sleep mode as long as I don't quit the app.
A question would be how can you set this to work without the app being opened?
this might be more of a phonegap issue, or configuring the app somehow to behave as
a service that is not visible as an app.
I have succeeded setting the local notifications according the RSSI distance and
it works in the background and in sleep mode as long as I don't quit the app.
A question would be how can you set this to work without the app being opened?
this might be more of a phonegap issue, or configuring the app somehow to behave as
a service that is not visible as an app.
Re: Proximity background service ios & android
Hi, are you on Android or iOS? It works a bit differently depending on the platform.
Best, Mikael
Best, Mikael
Re: Proximity background service ios & android
I am currently testing on android, i succedded doing it
With phonegap build and also exporting the project to
Eclipse and building it from there. I will need this to work
On ios as well but i first want finish the solutions
on android.
With phonegap build and also exporting the project to
Eclipse and building it from there. I will need this to work
On ios as well but i first want finish the solutions
on android.
Re: Proximity background service ios & android
Hi,
one interesting point I found is when I am using the evothings plugin and I am doing backgrounds checks to scan for a specific
beacon (every half a minute I scan for 10 seconds and then stop for another half a minute wait and scan again) if I receive a
phone call and speak through Bluetooth speakers (not sure that the other BT connection is related to the problem) the scan function
does not find the estimate device which is in short proximity.
one interesting point I found is when I am using the evothings plugin and I am doing backgrounds checks to scan for a specific
beacon (every half a minute I scan for 10 seconds and then stop for another half a minute wait and scan again) if I receive a
phone call and speak through Bluetooth speakers (not sure that the other BT connection is related to the problem) the scan function
does not find the estimate device which is in short proximity.
Re: Proximity background service ios & android
Hi arickatz,
Sorry for keeping you wait for a response.
What is the status, any luck with the Android background notification problem?
Perhaps some settings in the Android manifest file are needed for the app to work properly in the background?
Do you have some test case I can use to reproduce?
Do you launch the app, then go to the home screen? Turn the screen off? Is this the use case?
Just want to make sure that I test the same (or at least a similar) scenario as you have.
Best, Mikael
Sorry for keeping you wait for a response.
What is the status, any luck with the Android background notification problem?
Perhaps some settings in the Android manifest file are needed for the app to work properly in the background?
Do you have some test case I can use to reproduce?
Do you launch the app, then go to the home screen? Turn the screen off? Is this the use case?
Just want to make sure that I test the same (or at least a similar) scenario as you have.
Best, Mikael
Re: Proximity background service ios & android
hi again,
I tried getting this working using a project built in phonegap build and when I kill the app the notifications stop working.
I am now trying to build an android version of a simple scan using native ble support without the plugin using eclipe,
but this did not go so well so I moved to android studio but haven't invested any time on it due to other stuff I a working on.
I would love to have a simple eclipse project that uses an android service application that all ways listens in the background for the ble device
and send a notification when detected.
Thanks for the effort, Aric.
I tried getting this working using a project built in phonegap build and when I kill the app the notifications stop working.
I am now trying to build an android version of a simple scan using native ble support without the plugin using eclipe,
but this did not go so well so I moved to android studio but haven't invested any time on it due to other stuff I a working on.
I would love to have a simple eclipse project that uses an android service application that all ways listens in the background for the ble device
and send a notification when detected.
Thanks for the effort, Aric.
Return to “Questions and answers”
Who is online
Users browsing this forum: No registered users and 51 guests