I downloaded a sample push app from github and imported in eclipse as well but not getting registered?

0 votes

I tried using this app as a sample to test push messages provided mine API & SECRET key in mainactivity.java as well.

  App42API.setLoggedInUser("gmail") ;

       Util.registerWithApp42("1035770911452");
 
But not able to register it. Please help me out. Thanks in advance.
asked Feb 13, 2015 in App42 Cloud API-BaaS by prabhjassinghbajwa (25 points)

1 Answer

0 votes

Hey Prabhjas, Have you follow all necessary steps mentioned in README file of tutorial.

Please provide application logs that help us to resolve your query. You can enable logs in application using :

App42Log.setDebug(true);

Let me know if it helps.

Thanks

Vishnu

answered Feb 13, 2015 by Vishnu Garg (674 points)
Thanks Vishnu!
I have done it step by step only as well as sending you mine logs. Could you please do favor to me if u provide your email-id so that i should send you mine Android App in which i need to implement Push Notifications.


02-13 08:11:37.564: I/System.out(1715): Installation.getSession : /data/data/com.example.app42sample/files/SESSION: open failed: ENOENT (No such file or directory)
02-13 08:11:37.715: V/GCMRegistrar(1715): Registering receiver
02-13 08:11:37.721: D/GCMRegistrar(1715): resetting backoff for com.example.app42sample
02-13 08:11:37.722: V/GCMRegistrar(1715): Registering app com.example.app42sample of senders 1035770911452
02-13 08:11:37.736: D/MainActivity-onResume(1715): Message Recieved :null
02-13 08:11:38.672: D/OpenGLRenderer(1715): Render dirty regions requested: true
02-13 08:11:38.705: D/(1715): HostConnection::get() New Host Connection established 0xacf3a8e0, tid 1715
02-13 08:11:38.763: D/Atlas(1715): Validating map...
02-13 08:11:38.851: D/libEGL(1715): loaded /system/lib/egl/libEGL_emulation.so
02-13 08:11:38.853: D/libEGL(1715): loaded /system/lib/egl/libGLESv1_CM_emulation.so
02-13 08:11:38.871: D/libEGL(1715): loaded /system/lib/egl/libGLESv2_emulation.so
02-13 08:11:38.890: D/(1715): HostConnection::get() New Host Connection established 0xa4705120, tid 1736
02-13 08:11:38.918: I/OpenGLRenderer(1715): Initialized EGL, version 1.4
02-13 08:11:39.054: D/OpenGLRenderer(1715): Enabling debug mode 0
02-13 08:11:39.105: W/EGL_emulation(1715): eglSurfaceAttrib not implemented
02-13 08:11:39.105: W/OpenGLRenderer(1715): Failed to set EGL_SWAP_BEHAVIOR on surface 0xa4707380, error=EGL_SUCCESS
02-13 08:11:42.178: D/MessageActivity-onCreate(1715): Message Recieved :null
02-13 08:11:42.193: D/MessageActivity-onResume(1715): Message Recieved :null
02-13 08:11:42.334: W/EGL_emulation(1715): eglSurfaceAttrib not implemented
02-13 08:11:42.334: W/OpenGLRenderer(1715): Failed to set EGL_SWAP_BEHAVIOR on surface 0xb04582a0, error=EGL_SUCCESS
02-13 08:15:24.795: I/System.out(1788): Installation.getSession : /data/data/com.example.app42sample/files/SESSION: open failed: ENOENT (No such file or directory)
02-13 08:15:24.814: V/GCMRegistrar(1788): Registering receiver
02-13 08:15:24.815: D/GCMRegistrar(1788): resetting backoff for com.example.app42sample
02-13 08:15:24.817: V/GCMRegistrar(1788): Registering app com.example.app42sample of senders 1035770911452
02-13 08:15:24.829: D/MainActivity-onResume(1788): Message Recieved :null
02-13 08:15:25.109: D/OpenGLRenderer(1788): Render dirty regions requested: true
02-13 08:15:25.116: D/(1788): HostConnection::get() New Host Connection established 0xacf3ac20, tid 1788
02-13 08:15:25.149: D/Atlas(1788): Validating map...
02-13 08:15:25.285: D/libEGL(1788): loaded /system/lib/egl/libEGL_emulation.so
02-13 08:15:25.286: D/libEGL(1788): loaded /system/lib/egl/libGLESv1_CM_emulation.so
02-13 08:15:25.307: D/libEGL(1788): loaded /system/lib/egl/libGLESv2_emulation.so
02-13 08:15:25.327: D/(1788): HostConnection::get() New Host Connection established 0xa470b130, tid 1809
02-13 08:15:25.361: I/OpenGLRenderer(1788): Initialized EGL, version 1.4
02-13 08:15:25.512: D/OpenGLRenderer(1788): Enabling debug mode 0
02-13 08:15:25.567: W/EGL_emulation(1788): eglSurfaceAttrib not implemented
02-13 08:15:25.567: W/OpenGLRenderer(1788): Failed to set EGL_SWAP_BEHAVIOR on surface 0xa4707280, error=EGL_SUCCESS
02-13 08:15:31.533: D/MessageActivity-onCreate(1788): Message Recieved :null
02-13 08:15:31.534: D/MessageActivity-onResume(1788): Message Recieved :null
02-13 08:15:31.733: W/EGL_emulation(1788): eglSurfaceAttrib not implemented
02-13 08:15:31.733: W/OpenGLRenderer(1788): Failed to set EGL_SWAP_BEHAVIOR on surface 0xb0458ae0, error=EGL_SUCCESS
02-13 08:15:33.431: D/MainActivity-onResume(1788): Message Recieved :null
02-13 08:15:33.542: W/EGL_emulation(1788): eglSurfaceAttrib not implemented
02-13 08:15:33.542: W/OpenGLRenderer(1788): Failed to set EGL_SWAP_BEHAVIOR on surface 0xb04761c0, error=EGL_SUCCESS
As per logs I can say app is trying to register on GCM but not get any registration ID back from GCM.
 My Email id is vishnu.garg@shephertz.co.in
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
...