Hallo Freunde,
weiß jemand wie es möglich ist Bluetooth weiter laufen zu lassen, wenn die App im Hintergrund geht?
Bis jetzt ist es so das es auf hört zu scannen, wenn die Ap in den Hintergrund geht.
Simple example of a foreground service that keeps the process running in the background. The current location is shown in the persistent notification. The app starts at boot and theoretically should run all the time. It also schedules itself to run with StartServiceAt. This can help in cases...
www.b4x.com
Das GPS läuft im Hintergrund weiter, aber das BLE scannen hört einfach auf.
Also es geht nur das Bluetooth nicht weiter.
EDIT #1: This does not work on SAMSUNG phone running API 29+ EDIT #2: See post #12 EDIT #3: There maybe a solution to this, both myself and @OliverA have been working on. Will let you know tommorrow. Hello All I have a gps service and a ble service. They run every 5 minutes from a main...
Das hatte ich auch schon gefunden, kam dadurch aber zu keiner Lösung.
Das Problrm ist nur das BLE
Alles andere funktioniert auch wenn ich die App schließe und dann den Screen beende.
das Location Tracking läuft problemlos weiter.
Das BLE wird Theroteisch auch gestartet nur es scannt dann nicht.
Sobald ich das handy aufwecke geht sofort das Bluetooth wieder, nur eben nicht wenn es von alleine in den Hintergrund geht oder ich den Knopf drücke.
Ich habe die Projekt Datei mal angehangen, wenn du schon ein RuuviTag hast kanst du es ja mal probieren.
Das BLE läuft in dem Service vom location, welches tadellos im Hintergrund die GPS-Daten sendet.
BLE wird auch immer gestartet, scannt nur nicht.
Eventuel wird es von Google unterbunden, keine Ahnung.