-
Notifications
You must be signed in to change notification settings - Fork 62
Description
Description:
- On Amazon device the one signal messages stop showing after the device is restarted or randomly a couple of minutes after the app is closed.
Environment
- I am using 2.13.6 version of oneSignal unity SDK
- This issue occurs only in Amazon Fire OS (I am testing on Fire HD 8 Plus - 10th generation - Fire OS 7.3.2.2)
Steps to Reproduce Issue:
- Import one signal unity sdk 2.13.6
- Set up one signal for Amazon devices
- Open App (Device registers and one signal messages work)
- Restart device
- Don't open the app
- Try sending push notification to the device
- That is when the error occurs
Anything else:
Error Message:
12-03 09:20:57.971 +0000 576 1137 W ActivityManager: Background start not allowed: service Intent { act=com.amazon.device.messaging.intent.RECEIVE cat=[com.DefaultCompany.AppName] flg=0x10 pkg=com.DefaultCompany.AppName cmp=com.DefaultCompany.AppName/com.onesignal.ADMMessageHandler (has extras) } to com.DefaultCompany.AppName/com.onesignal.ADMMessageHandler from pid=14235 uid=10188 pkg=com.DefaultCompany.AppName startFg?=false
12-03 09:20:57.974 +0000 14235 14235 D AndroidRuntime: Shutting down VM
12-03 09:20:57.975 +0000 14235 14235 E AndroidRuntime: FATAL EXCEPTION: main
12-03 09:20:57.975 +0000 14235 14235 E AndroidRuntime: Process: com.DefaultCompany.AppName, PID: 14235
12-03 09:20:57.975 +0000 14235 14235 E AndroidRuntime: java.lang.RuntimeException: Unable to start receiver com.onesignal.ADMMessageHandler$Receiver: java.lang.IllegalStateException: Not allowed to start service Intent { act=com.amazon.device.messaging.intent.RECEIVE cat=[com.DefaultCompany.AppName] flg=0x10 pkg=com.DefaultCompany.AppName cmp=com.DefaultCompany.AppName/com.onesignal.ADMMessageHandler (has extras) }: app is in background uid UidRecord{4b00121 u0a188 RCVR idle change:uncached procs:1 seq(0,0,0)}
12-03 09:20:57.975 +0000 14235 14235 E AndroidRuntime: at android.app.ActivityThread.handleReceiver(ActivityThread.java:3415)
12-03 09:20:57.975 +0000 14235 14235 E AndroidRuntime: at android.app.ActivityThread.access$1200(ActivityThread.java:207)
12-03 09:20:57.975 +0000 14235 14235 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1670)
12-03 09:20:57.975 +0000 14235 14235 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
12-03 09:20:57.975 +0000 14235 14235 E AndroidRuntime: at android.os.Looper.loop(Looper.java:193)
12-03 09:20:57.975 +0000 14235 14235 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6740)
12-03 09:20:57.975 +0000 14235 14235 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
12-03 09:20:57.975 +0000 14235 14235 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
12-03 09:20:57.975 +0000 14235 14235 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
12-03 09:20:57.975 +0000 14235 14235 E AndroidRuntime: Caused by: java.lang.IllegalStateException: Not allowed to start service Intent { act=com.amazon.device.messaging.intent.RECEIVE cat=[com.DefaultCompany.AppName] flg=0x10 pkg=com.DefaultCompany.AppName cmp=com.DefaultCompany.AppName/com.onesignal.ADMMessageHandler (has extras) }: app is in background uid UidRecord{4b00121 u0a188 RCVR idle change:uncached procs:1 seq(0,0,0)}
12-03 09:20:57.975 +0000 14235 14235 E AndroidRuntime: at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1613)
12-03 09:20:57.975 +0000 14235 14235 E AndroidRuntime: at android.app.ContextImpl.startService(ContextImpl.java:1568)
12-03 09:20:57.975 +0000 14235 14235 E AndroidRuntime: at android.content.ContextWrapper.startService(ContextWrapper.java:664)
12-03 09:20:57.975 +0000 14235 14235 E AndroidRuntime: at android.content.ContextWrapper.startService(ContextWrapper.java:664)
12-03 09:20:57.975 +0000 14235 14235 E AndroidRuntime: at com.amazon.device.messaging.ADMMessageReceiver.onReceive(ADMMessageReceiver.java:118)
12-03 09:20:57.975 +0000 14235 14235 E AndroidRuntime: at android.app.ActivityThread.handleReceiver(ActivityThread.java:3406)
12-03 09:20:57.975 +0000 14235 14235 E AndroidRuntime: ... 8 more
My investigation:
I found this similar issue in your android sdk:
OneSignal/OneSignal-Android-SDK#890
which was fixed for your android sdk with this commit (commit that added support for FireOS 7):
OneSignal/OneSignal-Android-SDK#1184
which if i understand implements the adm message handler job base,
In the unity sdk i didn't see those changes, could that be the case, that support for fire OS 7 was not yet added in your unity SDK?