This is a migrated thread and some comments may be shown as answers.

java.lang.RuntimeException: Unable to instantiate receiver com.plugin.gcm.CordovaGCMBroadcastReceiver

3 Answers 514 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Blue
Top achievements
Rank 1
Blue asked on 22 Oct 2014, 09:44 AM
Hi,

I recently moved from the PushPlugin to the Telerik Verified Pushwoosh plugin in my project, and it seems that this is the source of my problem.
The real problem is that the App, on Android only, is crashing because it cannot find the class mentioned in the title of the post.
I had to use the Android Device Monitor application to figure out what the real problem is, because the AppBuilder debugger was giving me no information regarding the crashing of my App.

Below is the error trace that I got from the Monitor application :

10-22 10:03:00.968: E/AndroidRuntime(15131): java.lang.RuntimeException:
Unable to instantiate receiver com.plugin.gcm.CordovaGCMBroadcastReceiver: java.lang.ClassNotFoundException:
Didn't find class "com.plugin.gcm.CordovaGCMBroadcastReceiver" on path:
DexPathList[[zip file "/data/app/com.telerik.MaroelaMedia-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.telerik.MaroelaMedia-1, /vendor/lib, /system/lib, /vendor/lib]]

Additionally, this class is mentioned in my AndroidManifest.xml file for my project:
<receiver android:name="com.plugin.gcm.CordovaGCMBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter><action android:name="com.google.android.c2dm.intent.RECEIVE" />
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="com.telerik.MaroelaMedia" />
</intent-filter>
</receiver>

I'm not sure if I have to post this error in the Telerik forums... If this is not the right place, please let me know.

3 Answers, 1 is accepted

Sort by
0
Blue
Top achievements
Rank 1
answered on 22 Oct 2014, 01:40 PM
I found some additional information.
I converted the .dex file in the apk to a jar file using a tool called dex2jar from Google.
In this file I looked for the class in the title of my post, and of course, I could not find it...  Is it supposed to be there ? I'm not sure...

0
Blue
Top achievements
Rank 1
answered on 24 Oct 2014, 05:16 AM
Hi, 

any news on this one yet ?
0
Kaloyan
Telerik team
answered on 24 Oct 2014, 03:16 PM
Hi Blue,

As all of the Telerik verified plugins are open source, we would like to keep all of its issues and feature requests inside their github repositories. This allows other users to search for possible solutions to their matters in one single place, instead of going through all the threads in our forums.

This said, I would ask you to submit this in the Pushwoosh git repository, where a colleague of mine will  assist you further.

Thank you for the understanding.

Regards,
Kaloyan
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
Report a bug
Asked by
Blue
Top achievements
Rank 1
Answers by
Blue
Top achievements
Rank 1
Kaloyan
Telerik team
Share this question
or