java.lang.IllegalArgumentException: Component class com.ansca.corona.notifications.GoogleCloudMessagingBroadcastReceiver does not exist

@josh_OneSignal, I’ll have to ask engineering. The person with that answer is out on holiday.  It will likely be Monday before I get an answer.

Rob

We just saw this error as well. Should we be worried? 

10-09 15:33:27.097 1537 10100 D PackageManager: setEnabledSetting : userId = 0 packageName = com.sx.wonsterwords cmp = com.ansca.corona.notifications.GoogleCloudMessagingBroadcastReceiver newState = 2 callingPackage = 10485/com.sx.wonsterwords 10-09 15:33:27.097 25419 25450 W System.err: java.lang.IllegalArgumentException: Component class com.ansca.corona.notifications.GoogleCloudMessagingBroadcastReceiver does not exist in com.sx.wonsterwords 10-09 15:33:27.098 25419 25450 W System.err: at android.os.Parcel.readException(Parcel.java:1963) 10-09 15:33:27.098 25419 25450 W System.err: at android.os.Parcel.readException(Parcel.java:1905) 10-09 15:33:27.098 25419 25450 W System.err: at android.content.pm.IPackageManager$Stub$Proxy.setComponentEnabledSetting(IPackageManager.java:5705) 10-09 15:33:27.098 25419 25450 W System.err: at android.app.ApplicationPackageManager.setComponentEnabledSetting(ApplicationPackageManager.java:2910) 10-09 15:33:27.098 25419 25450 W System.err: at OneSignal.LuaLoader$InitFunction.invoke(LuaLoader.java:118) 10-09 15:33:27.098 25419 25450 W System.err: at com.ansca.corona.JavaToNativeShim.nativeRender(Native Method) 10-09 15:33:27.098 25419 25450 W System.err: at com.ansca.corona.JavaToNativeShim.render(JavaToNativeShim.java:195) 10-09 15:33:27.098 25419 25450 W System.err: at com.ansca.corona.Controller.updateRuntimeState(Controller.java:357) 10-09 15:33:27.098 25419 25450 W System.err: at com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$CoronaRenderer.onDrawFrame(CoronaGLSurfaceView.java:425) 10-09 15:33:27.098 25419 25450 W System.err: at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1625) 10-09 15:33:27.098 25419 25450 W System.err: at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1380)

@akao This is only a warning and can be ignored. The “plugin.notifications.v2” used to be included in Corona automatically which OneSignal has to disable if found to prevent double notifications from showing. No need to add “plugin.notifications.v2” unless you need it for something else.

If you are considered about “plugin.notifications.v2” being disabled it is only the remote notification part. Also OneSignal filter proxies non-OneSignal payloads to it so it won’t cause issues with pushes from other sources.

I am getting this error as well. What is the status on this?

Had the same issue. For me the solution was to add plugin “plugin.notifications.v2” to project’s build.settings

We just saw this error as well. Should we be worried? 

10-09 15:33:27.097 1537 10100 D PackageManager: setEnabledSetting : userId = 0 packageName = com.sx.wonsterwords cmp = com.ansca.corona.notifications.GoogleCloudMessagingBroadcastReceiver newState = 2 callingPackage = 10485/com.sx.wonsterwords 10-09 15:33:27.097 25419 25450 W System.err: java.lang.IllegalArgumentException: Component class com.ansca.corona.notifications.GoogleCloudMessagingBroadcastReceiver does not exist in com.sx.wonsterwords 10-09 15:33:27.098 25419 25450 W System.err: at android.os.Parcel.readException(Parcel.java:1963) 10-09 15:33:27.098 25419 25450 W System.err: at android.os.Parcel.readException(Parcel.java:1905) 10-09 15:33:27.098 25419 25450 W System.err: at android.content.pm.IPackageManager$Stub$Proxy.setComponentEnabledSetting(IPackageManager.java:5705) 10-09 15:33:27.098 25419 25450 W System.err: at android.app.ApplicationPackageManager.setComponentEnabledSetting(ApplicationPackageManager.java:2910) 10-09 15:33:27.098 25419 25450 W System.err: at OneSignal.LuaLoader$InitFunction.invoke(LuaLoader.java:118) 10-09 15:33:27.098 25419 25450 W System.err: at com.ansca.corona.JavaToNativeShim.nativeRender(Native Method) 10-09 15:33:27.098 25419 25450 W System.err: at com.ansca.corona.JavaToNativeShim.render(JavaToNativeShim.java:195) 10-09 15:33:27.098 25419 25450 W System.err: at com.ansca.corona.Controller.updateRuntimeState(Controller.java:357) 10-09 15:33:27.098 25419 25450 W System.err: at com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$CoronaRenderer.onDrawFrame(CoronaGLSurfaceView.java:425) 10-09 15:33:27.098 25419 25450 W System.err: at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1625) 10-09 15:33:27.098 25419 25450 W System.err: at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1380)

@akao This is only a warning and can be ignored. The “plugin.notifications.v2” used to be included in Corona automatically which OneSignal has to disable if found to prevent double notifications from showing. No need to add “plugin.notifications.v2” unless you need it for something else.

If you are considered about “plugin.notifications.v2” being disabled it is only the remote notification part. Also OneSignal filter proxies non-OneSignal payloads to it so it won’t cause issues with pushes from other sources.