phonegap-build / PushPlugin

This repository is deprecated head to phonegap/phonegap-push-plugin
https://github.com/phonegap/phonegap-plugin-push
MIT License
1.31k stars 996 forks source link

Class not found #623

Open MarkWittens opened 9 years ago

MarkWittens commented 9 years ago

I tried installing this plugin (2.5.0), added PushNotification to the www folder and included it in index.html. Now when I call register (after the device has become ready) i get an error "Class not found".

I tried all kinds of things (reïnstall platform, other plugin, fresh cordova install) but nothing seems to work, anyone has a solution for this?

MarkWittens commented 9 years ago

611 is not the same issue, I was testing with the Phonegap app but the plugin doesn't seem to work with that. In the emulator it all works or at least I'm getting a registration ID, I have not tried anything else yet :)

MarkWittens commented 9 years ago

So the Phonegap developer app (https://play.google.com/store/apps/details?id=com.adobe.phonegap.app) should work with the plugin?

Platform is Android Device is a Experia Z3 I have not tried 2.4.0 but I have tried to test in in the real emulater and that did work.

idanb007 commented 9 years ago

Hi, Im having the same issue , it goes to error handler with "class not found " massage when calling Notification.register method .

deployed to samsung galaxy s3 mini with cordova ctp3.1 using the plugin index.html example in clean cordova project .

jdinse commented 9 years ago

The sample code uses the Media class, but this plugin has no dependency to cordovas Media plugin. Can someone try out if installing the Media plugin fixes the issue?

idanb007 commented 9 years ago

SOLVED - downgrading from 2.5.0 plugin to 2.4.0 , Rebuilding my cordova project (otherwise it doesn't work) , deploying example app to my s3 mini , and getting push notifications :) . "like a glove"

thatsmekaustubh commented 9 years ago

@sicter @MarkWittens Issue persists for phonegap developer app Works for emulator and generated apk but doesnt function in offical phonegap developer app Platform: Android; Phonegap: 3.6.4; Model: Lenovo K50a40; Ver: 5.0 Context onDeviceReady

macdonst commented 9 years ago

@sicter @MarkWittens @thatsmekaustubh Hi all, the PhoneGap Developer App does not include the PushPlugin. The PG Dev App only includes the core Cordova plugins and now the Bluetooth plugin.

I've got a plan to add the new Push Plugin to the developer app but it will require changes to the app and the PhoneGap CLI. In the mean time you should really switch over to the new push plugin as this one is going to be deprecated.

https://github.com/phonegap/phonegap-plugin-push