Android Question Android11 and foreground service problem - MyLocation example

Konrado

Member
Hi all,
I've spent several hours trying to solve problem (without luck) with example MyLocation.zip from https://www.b4x.com/android/forum/threads/background-location-tracking.99873/#content . It works well on my older Androids (and NOX) and doesn't work on Android11 (Samsung A40). After closing main activity - foreground service stops.
My manifest:
man.png

and path config:
pic2.png


I have no idea what else is missing. Any ideas?
 

Attachments

  • manif.png
    manif.png
    16.6 KB · Views: 151

Konrado

Member
2. Yes. the notification dissapeared. There were no any error logs.
1. When I was trying to prepare logs for You and make "clean" installation of the example ,I restarted my phone (which I didn't earlier) , restarted B4A-Bridge and deleted "B4A Example" before new installation (however both these steps I did earlier without any effects). Now it works as it should. Maybe It will be advice for others in the future.
Thank you.
 
Upvote 0
Top