Hello,
We are having problems getting push notifications to work for Android.
We are using our own database to manage tokens which is working in IOS, but not Android. The last two lines are outputted by our app, but everything above it suggests that there is an error getting a Push Notification token, even though we have set and double-checked our credentials.
Following our details of our Appery/android configuration and log output from logcat.
Thanks in advance.
Our configurations are:
Appery lib version: 2.2
Android Sender ID + API Key: Both are set and double checked
Android Certificate: Uploaded and set as default
Tested targets: 4.1.2 and 4.4.4
Using logcat we find the following:
D/CordovaLog(23419): file:///android_asset/www/files/resources/lib/cordova.js: Line 305 : Error in Error callbackId: PushNotification1450183506 : TypeError: Cannot read property 'length' of undefined
D/CordovaLog(23419): file:///android_asset/www/files/resources/lib/cordova.js: Line 1075 : processMessage failed: Error: TypeError: Cannot read property 'length' of undefined
D/CordovaLog(23419): file:///android_asset/www/files/resources/lib/cordova.js: Line 1076 : processMessage failed: Stack: TypeError: Cannot read property 'length' of undefined
D/CordovaLog(23419): at file:///android_asset/www/Start.js:372:54
D/CordovaLog(23419): at Object.callbackFromNative (file:///android_asset/www/files/resources/lib/cordova.js:288:52)
D/CordovaLog(23419): at processMessage (file:///android_asset/www/files/resources/lib/cordova.js21)
D/CordovaLog(23419): at file:///android_asset/www/files/resources/lib/cordova.js13
D/CordovaLog(23419): file:///android_asset/www/files/resources/lib/cordova.js: Line 1077 : processMessage failed: Message: F07 PushNotification1450183506 sInvalid action
D/CordovaLog(23419): null: Line 889 : Android User token
D/CordovaLog(23419): null: Line 891 : Android User token false