Make FindMyPhone plugin work on Android 10
Summary
Make FindMyPhone work on Android 10 API29 phones while the app is not in the foreground
Partially fixes _BUG: 414120
App in foreground | App in background screen on | App in background screen off |
---|---|---|
AppInFront | AppInBackground | AppInBackgroundScreenLocked |
Test Plan
Before:
While paired to an Android 10 device with kdeconnect not running in the foreground trigger the FindMyPhone plugin Observe that the FindMyPhone activity is not launched
After:
1: - While paired to an Android 10 device with kdeconnect not running in the foreground but with the screen on trigger the FindMyPhone plugin.
- Observe that a notification is shown visibly and the device starts playing its configured ringtone 2: - While paired to an Android 10 device with kdeconnect not running in the foreground but with the screen off trigger the FindMyPhone plugin.
- Observe that the FindMyPhone activity is launched and the device starts playing its configured ringtone