B4X FEED [B4APages] About background tasks and services

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

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: [B4APages] About background tasks and services است. این موضوع تا کنون 57 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع [B4APages] About background tasks and services
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
57
پسندها
0
آخرین ارسال توسط PracticalSoft
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
Jun 6, 2020
11,593
4,507
Hello!

I would like to ask the following:
As I understand, I could have the Starter service for background tasks like push messages functionality with web sockets, send/receive messages via the websocket push framework and background GPS management to send location data to server even if the app is in "background". I also need to "wake" the app from "background" when receiving specific messages.
Things I need to clarify:

1. Do I really need a background service in order to keep the app alive when in background?

2. If yes, should I remove the following line from Starter service, in order to prevent the process being killed from Android?
B4X:

Service.StopAutomaticForeground
And do I need StartServiceAt?

3. Could I use notifications like any other app with background service running? If the service is not needed then how notifications are implemented?

4. How do I "wake" the app from "background"? By now I did the following inside the background service running as...



 

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