Hi, All
Who recently was creating an app like a messenger, that must be "forever online" (without Google Play Market publish) ?
Please, help to collect the latest actual rules list: what the app must contain to work all-the-time even after screen off button.
1. Notification permission
2. Notification icon
3. Foreground service type
5. PhoneWakeState ? How better for a messenger ?
Correct ? What more ?
p.s. the applied task is a WiFi local intranet messenger. It does not work with all these steps when the device screen is switched off by the button.
Who recently was creating an app like a messenger, that must be "forever online" (without Google Play Market publish) ?
Please, help to collect the latest actual rules list: what the app must contain to work all-the-time even after screen off button.
1. Notification permission
2. Notification icon
3. Foreground service type
4. Foreground serviceAddPermission(android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK)
SetServiceAttribute(serv, android:foregroundServiceType, "mediaPlayback") 'choose the type
5. PhoneWakeState ? How better for a messenger ?
Correct ? What more ?
p.s. the applied task is a WiFi local intranet messenger. It does not work with all these steps when the device screen is switched off by the button.