Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Amazon + oneSignal crash on start #561

Open
1 task done
Vladeng opened this issue Nov 24, 2022 · 0 comments
Open
1 task done

[Bug]: Amazon + oneSignal crash on start #561

Vladeng opened this issue Nov 24, 2022 · 0 comments

Comments

@Vladeng
Copy link

Vladeng commented Nov 24, 2022

What happened?

We have a problem with Amazon version of our game with an integrated onesignal.

Steps to reproduce?

We did all like an instruction 
https://documentation.onesignal.com/docs/unity-sdk-setup
and
place api_key.txt on Assets/Plugins/Android/ AND Assets/StreamingAssets
our apk: https://www.dropbox.com/s/1n6wqafe058pqv4/do.apk?dl=0

and got crash on start:

Caused by java.lang.RuntimeException: Unable to start receiver com.onesignal.ADMMessageHandler$Receiver: java.lang.IllegalArgumentException: No such service ComponentInfo{com.miniit.difference/com.onesignal.ADMMessageHandlerJob}
       at android.app.ActivityThread.handleReceiver(ActivityThread.java:3422)
       at android.app.ActivityThread.access$1300(ActivityThread.java:207)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1677)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loop(Looper.java:211)
       at android.app.ActivityThread.main(ActivityThread.java:6752)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)



Caused by java.lang.IllegalArgumentException: No such service ComponentInfo{com.miniit.difference/com.onesignal.ADMMessageHandlerJob}
       at android.os.Parcel.createException(Parcel.java:1954)
       at android.os.Parcel.readException(Parcel.java:1918)
       at android.os.Parcel.readException(Parcel.java:1868)
       at android.app.job.IJobScheduler$Stub$Proxy.enqueue(IJobScheduler.java:215)
       at android.app.JobSchedulerImpl.enqueue(JobSchedulerImpl.java:53)
       at com.amazon.device.messaging.JobIntentService$JobWorkEnqueuer.enqueueWork(JobIntentService.java:361)
       at com.amazon.device.messaging.JobIntentService.enqueueWork(JobIntentService.java:565)
       at com.amazon.device.messaging.ADMMessageReceiver.onReceive(ADMMessageReceiver.java:115)
       at android.app.ActivityThread.handleReceiver(ActivityThread.java:3413)
       at android.app.ActivityThread.access$1300(ActivityThread.java:207)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1677)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loop(Looper.java:211)
       at android.app.ActivityThread.main(ActivityThread.java:6752)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)


I googled it, and it looks like file api_key.txt can't be found but if we look in to apk we can find it on the right place.

What did you expect to happen?

it must work

Unity version

2020.3.41f1

OneSignal Unity SDK version

3.0.4

Platform

Android, Other

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant