-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Class not found error #1410
Comments
Sorry to be a jerk but I'm now closing issues that don't follow the issue submission guidelines. This plugin takes a lot of work to maintain and I can't afford the time required to solicit the required info from everyone. I'm closing this issue but please feel free to re-open the issue if you provide the requested details from the new issue submission guidelines. https://github.com/phonegap/phonegap-plugin-push/blob/master/.github/ISSUE_TEMPLATE.md |
sorry macdonst, I was editing that issue with more details when you closed it. :( can you please reopen it? |
Can you check and post here what exactly is on |
@yiwong2001 it seems like the Android code that the plugin installs did not get loaded correctly. Can you check to see that there are actually classes in |
@macdonst I can see all classes in folder you mentioned. But I can not see any error in log related to "PushPlugin" @fredgalvao line80 is console.log(e.message) in push.on("err"); |
If the exception came from your |
@yiwong2001 yeah, run this on a real device, not the emulator and let's see what |
hi @macdonst and @fredgalvao, I noticed some errors in full log 11-24 23:55:15.020 11101-11101/? E/AndroidRuntime: FATAL EXCEPTION: main ====================================== 11-25 01:10:47.586 1998-1998/com.google.android.gms.persistent D/Error: ERR: TOTAL BYTES WRITTEN: 35884 |
Seems push plugin is not registered correctly 11-25 02:13:34.852 17181-17181/io.pubble.mod D/PluginManager: init() Where should I check to register it? |
@yiwong2001 I think you should do a:
|
@macdonst, got little bit progress, but still need ur help :) I reinstalled plugin, and it really helped. now I got timeout in log. E/PushPlugin(20077): execute: Got JSON Exception TIMEOUT According to documentation, it says, I need to update play service version. Does it mean I need to update google play service version on my virtual device? |
I tried it on huawei mate7. It has no timeout issue. I guess google service version on virtual device is too old. Now I got following error: 11-25 03:25:46.204 10389-10458/io.pubble.mod E/PushPlugin: execute: Got JSON Exception INVALID_SENDER But I am sure I set correct sender_id in js var push = PushNotification.init({ |
sorry. It turned out I still used wrong senderID. thanks for your help @macdonst and fredgalvao. |
This thread has been automatically locked. |
Expected Behaviour
Receive reg id from google server
Actual Behaviour
Got 'class not found' error from on('error')... handler,
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
Android6.0 api23
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
virtual device & Mate7 huawei
Cordova CLI version and cordova platform version
cordova 6.4.0
Plugin version
1.8.2
Hi, I am trying this plugin in a simple cordova-android app. I have installed plugin successfully and compiled project with no problem. But when I run it on virtual device OR my Huawei mate7. Both device got Class not found from push.on('error')
11-25 01:09:01.738 15455-15455/this.is.my.package I/chromium: [INFO:CONSOLE(80)] "Class not found", source: file:///android_asset/www/js/index.js (80)
Can you give me some guidance? thanks!
The text was updated successfully, but these errors were encountered: