Closed AGulev closed 2 years ago
@britzl I tested this PR on 2 devices: Android 6.0 Android 11 It would be nice if you can test on something else, thx!
I tested 6 different options: local notification: app is open local notification: app is in background local notification: app is closed remote(push) notification: app is open remote(push) notification: app is in background remote(push) notification: app is closed
Local notifications work on a Xiaomi with Android 11. Going to charge another device and try that as well.
Going to charge another device and try that as well.
Works well on a Razr with Android 8.1.0!
Fix https://github.com/defold/extension-push/issues/37
There are two ideas behind this fix:
BroadcastReciever
LocalNotificationReceiver -> onReceive()
should be as light as possible, that's why I moved creation of the Notification intoscheduleNotification()
method