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

Ported to latest Phonegap / Cordova #8

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rjimenezda
Copy link

Had to use this on a project @ work for inspiration, took the time to make it work with latest Phonegap / Cordova :)

Cheers

@nkvangip
Copy link

Thank you very much for your effort. I tried getting your code and created a test app. I was able to register and get the auth id. After getting the authid and registration id, I am trying to send a message but I keep getting the below class not found exception. I have double checked all my configurations and it looks good to me. In case if you hit this problem can you please let me know.

"6-25 08:53:38.342: E/AndroidRuntime(712): java.lang.RuntimeException: Unable to instantiate receiver com.google.android.c2dm.C2DMBroadcastReceiver: java.lang.ClassNotFoundException: com.google.android.c2dm.C2DMBroadcastReceiver"

@rjimenezda
Copy link
Author

Hmm I got a similar exception, but with Phongap Classes, and it was due to Eclipse and latest Android development tools. For some reason you don't have to use the Java Build path, apparently if you just place the jars on the "libs" folder, it should load them as "android dependencies". Doesn't seem the exact same situation since C2DMBroadCastReceiver is an actual class on the src folder.

I'll try to reproduce the error and let you now :)

Cheers

@nkvangip
Copy link

Please ignore my question. Everything is working like a charm. I was getting the error because of my stupid mistake. I had another test application in which I acidentally put all the C2DMPlugin configuration information. So when the message is pushed that application is also trying to receive the message and throwing the classnotfound exception as the classes are not there. Thanks for your quick response. Really appreciate it.

@rjimenezda
Copy link
Author

Great! Glad to help, the plugin was really helpful =)

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

Successfully merging this pull request may close these issues.

2 participants