B4X FEED Service.StopAutomaticForeground in ver.12

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

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: Service.StopAutomaticForeground in ver.12 است. این موضوع تا کنون 23 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Service.StopAutomaticForeground in ver.12
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
23
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
Hi all.

I have a question - I'm testing my app in ver.12 and found a very strange situation.

In Starter in sub Sub Service_Start (StartingIntent As Intent) I have a line
B4X:

Service.StopAutomaticForeground 'Starter service can start in the foreground state in some edge cases.

It works fine in ver.11.80 and if I'm using FLP for GPS coordinates it receives Lat/Long, then disconnects from the service and stops as I expected.

But in ver.12 the same code doesn't work properly - it looks like Service.StopAutomaticForeground doesn't do anything - no crash, no errors. FLP receives lat/long, disconnected from the service and continues to receive coordinates.

Am I doing something wrong?

Please see the attached example - it works fine in 11.80 but not in 12.

Thank you.

 

عقب
بالا