Question: My Android application does not register for push notifications with the following exception.
E/Pushwoosh: Exception occurred
java.lang.IllegalArgumentException: Please set the mAppId constant and recompile the app.
at com.pushwoosh.internal.platform.utils.GeneralUtils.checkNotNullOrEmpty(Unknown Source:23)
at com.pushwoosh.internal.registrar.a$a.a(Unknown Source:12)
at com.pushwoosh.internal.registrar.a.checkDevice(Unknown Source:2)
at com.pushwoosh.notification.e.a(Unknown Source:45)
at com.pushwoosh.Pushwoosh.a(Unknown Source:11)
at com.pushwoosh.l.a(Unknown Source:4)
at com.pushwoosh.inapp.a.a.a(Unknown Source:11)
at com.pushwoosh.inapp.a.b.run(Unknown Source:6)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Answer:
Typically, this error occurs when the metadata was placed in the wrong place. As a result, your application is not able to register for push notifications.
In order to resolve this, please note that it is necessary to place metadata from step 7 of our guide within the application
part of your AndroidManifest.xml
. Take a look at the screenshot below:
Comments
0 comments
Please sign in to leave a comment.