App42 tokens not getting generated for Android?

0 votes

Hye Vishnu,

Last time also used same sdk and its working but now when i upgrading my app with some features its not working.

In my logcat i can see tokens are unable to generate. Please help.

01-25 22:04:25.562: I/System.out(3645): com.shephertz.app42.push.plugin.App42GCMService
01-25 22:04:26.494: I/chromium(3645): [INFO:CONSOLE(173)] "No Content-Security-Policy meta tag found. Please add one when using the cordova-plugin-whitelist plugin.", source: file:///android_asset/www/plugins/cordova-plugin-console/www/console-via-logger.js (173)
01-25 22:04:26.498: D/PluginManager(3645): exec() call to unknown plugin: Console
 

 

Regards,

Prabhjas Singh

asked Jan 25, 2016 in Android by prabhjassinghbajwa (25 points)
01-25 22:09:26.353: D/cr_Ime(20539): packageName=com.prabhjas.sikhsangatnz fieldId=100 fieldName=null
01-25 22:09:26.353: D/cr_Ime(20539): extras=null
01-25 22:09:26.369: W/cr_BindingManager(20539): Cannot call determinedVisibility() - never saw a connection for the pid: 20539
01-25 22:09:27.273: I/System.out(20539):  Exception :com.shephertz.app42.paas.sdk.android.App42Exception: Username parameter can not be null
01-25 22:09:27.438: I/System.out(20539): com.shephertz.app42.push.plugin.App42GCMService
01-25 22:09:29.939: D/JsMessageQueue(20539): Set native->JS mode to OnlineEventsBridgeMode
01-25 22:09:30.108: I/chromium(20539): [INFO:CONSOLE(8)] "Uncaught ReferenceError: newsService is not defined", source: file:///android_asset/www/scripts/news/home.service.js (8)
01-25 22:09:31.111: I/chromium(20539): [INFO:CONSOLE(466)] "Ionic Core: init", source: file:///android_asset/www/bower_components/ionic-service-core/ionic-core.js (466)
01-25 22:09:31.118: I/chromium(20539): [INFO:CONSOLE(145)] "Ionic Core: searching for cordova.js", source: file:///android_asset/www/bower_components/ionic-service-core/ionic-core.js (145)
01-25 22:09:31.119: I/chromium(20539): [INFO:CONSOLE(149)] "Ionic Core: cordova.js has already been loaded", source: file:///android_asset/www/bower_components/ionic-service-core/ionic-core.js (149)
01-25 22:09:31.454: W/cr_BindingManager(20539): Cannot call determinedVisibility() - never saw a connection for the pid: 20539
01-25 22:19:20.717: D/SystemWebViewEngine(17430): CordovaWebView is running on device made by: YU
01-25 22:19:20.733: W/art(17430): Attempt to remove local handle scope entry from IRT, ignoring
01-25 22:19:20.734: W/art(17430): Attempt to remove local handle scope entry from IRT, ignoring
01-25 22:19:20.740: W/WhitelistPlugin(17430): Found <access launch-external> within config.xml. Please use <allow-intent> instead.
01-25 22:19:20.741: W/WhitelistPlugin(17430): Found <access launch-external> within config.xml. Please use <allow-intent> instead.
01-25 22:19:20.741: W/WhitelistPlugin(17430): Found <access launch-external> within config.xml. Please use <allow-intent> instead.
01-25 22:19:20.742: W/WhitelistPlugin(17430): Found <access launch-external> within config.xml. Please use <allow-intent> instead.
01-25 22:19:20.763: D/cr_Ime(17430): [ImeAdapter.java:241] attach
01-25 22:19:20.785: I/System.out(17430): Installation.getSession : /data/data/com.prabhjas.sikhsangatnz/files/SESSION: open failed: ENOENT (No such file or directory)
01-25 22:19:20.786: I/System.out(17430): Installation.getUser : /data/data/com.prabhjas.sikhsangatnz/files/USER: open failed: ENOENT (No such file or directory)
01-25 22:19:20.806: I/App42PushNotification(17430): Registration not found.
01-25 22:19:20.821: D/OpenGLRenderer(17430): Use EGL_SWAP_BEHAVIOR_PRESERVED: true
I don't know whats happening with your sever. Because the app which is available on play store it basically receives push messages. I'm having 82 users which are having app installed on their device. But none of them getting push messages.
Please look into this issue as soon as possible.

1 Answer

0 votes

Hi Prabhjas,

As I am going through with the logs that you have shared with me shows the exception. com.shephertz.app42.paas.sdk.android.App42Exception: Username parameter can not be null

So that might be reason users are not getting registered on AppHQ dashboard as userName is null or blank.

Can you please share MainAcitivity.java file of your Android source that will help us top trace the exact problem.

Also update the Android SDK as well that will uses deviceId as default userName if userName is blank.

Let me know the details.

 

Thanks

Vishnu Garg

answered Jan 27, 2016 by Vishnu Garg (674 points) 1 flag
Thanks! Its working..
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...