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

4 posts, 0 answers
  1. Blue
    Blue avatar
    11 posts
    Member since:
    Jun 2013

    Posted 22 Oct 2014 Link to this post

    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.
  2. Blue
    Blue avatar
    11 posts
    Member since:
    Jun 2013

    Posted 22 Oct 2014 Link to this post

    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...

  3. Blue
    Blue avatar
    11 posts
    Member since:
    Jun 2013

    Posted 24 Oct 2014 Link to this post

    Hi, 

    any news on this one yet ?
  4. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 24 Oct 2014 Link to this post

    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.

     
Back to Top