B4X FEED Services in Android 10+

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: Services in Android 10+ است. این موضوع تا کنون 75 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Services in Android 10+
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
75
پسندها
0
آخرین ارسال توسط PracticalSoft
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
Jun 6, 2020
11,593
4,507
Hi!
My app was working OK except in Android 10.
It has the mandatory location permission ACCESS_FINE_LOCATION because it must scan for Bluetooth devices.
There is a service that runs only when the SO is pairing with the Bluetooth device.
In Android 10 the service seems not to start. (no errors shown in the unfiltered log)
Things I have tried:
-Update to B4A v10
-Android sdk platform 29 and targetSdkVersion="29"
-As noted in the post added to the manifest this line:
B4X:

SetServiceAttribute(Tracker, android:foregroundServiceType, "location")
(Changing the service name)
The results are the same.
The service don't start.
Some doubts now:
Must I add the manifest line somewhere specific position? Here: says that it may be declared in the "service section" of the manifest. Is this relevant?
Is a...



 

وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
عقب
بالا