-
Notifications
You must be signed in to change notification settings - Fork 1.9k
installing plugin #244
Comments
@tahaemin you code looks fine to me. are you sure your GCM setup is correct? whats the response from gcm server when you send the curl/http request for push. |
Not sure if it is related, but when I tried to get the code working in an emulator it took me some time to figure out I had to set the target of my virtual device to 'Google API's (Google Inc.) - API Level 22' instead of just 'Android 5.1.1 - API Level 22'. |
@tahaemin what @bmwsedee mentioned is your problem. If you are just using an "Android" emulator then it doesn't include Play Services but if you create a new emulator that uses the "Google" API's then you'll successfully build. Although my recommendation is to always use a device when testing push. Please close this issue if the above comments resolve your problem. |
Hi again, thank you for your answers @mohitmayank, @macdonst & @bmwsedee . I'm using phonegap app for testing my apps. I'll try your suggestions then i'll give you information. Thanks again. |
@tahaemin the PhoneGap Developer App does not include the native code required for the push plugin to function. I'm hoping to be able to add push test to this app by the end of the year but no promises. You'll have to build you own app to test push. |
@macdonst i built app via https://build.phonegap.com and i installed the app to my android device which is running on android 5.0.0, and it throws "[ERROR] Error initializing Cordova: Class not found.". i made double check for any error on my config.xml but there is no error in it. This is the last situation on my entegration. Waiting for your help. |
@tahaemin did you resolve your problem? |
No i did not. I think our problem is occured because of cordova-plugin-device. When i install and use it, it throws "Cordova class not found". My main objective is fixing this part, after that i will try push plugin. Thank you @macdonst |
This thread has been automatically locked. |
Hi, im workin on phonegap v5.3.6 and cordova v5.3.3. I did everything on README but plugin is not working.
Here is my code below;
It's not throwing any success or error message. What is wrong on this code phrase?
Thank you for your help
The text was updated successfully, but these errors were encountered: