device not registered in push notification

0 votes
i am sharing link  https://github.com/sanpie/demo/tree/master/App42Sample  of my project.please provide me help
asked Nov 27, 2014 in App42 Cloud API-BaaS by adarsh agrawal (10 points)

1 Answer

0 votes

Hi Adarsh,

Thanks for sharing project, here are some points that you should modify with your MainActivity.java file :

  1. Please don't use "<>" initialization.
  2. Please don't use space  in project no.

App42API.initialize( this,                    "843d02f836f34de72e195cd550223c41cc3e3b823d3813012103109765814caf",
 "a1e0c480942473bc56aa95e778b997949f641df747d36cf5ac32ef155f07a5ef");  App42API.setLoggedInUser("adarsh.agrawal862@gmail.com") ;
Util.registerWithApp42("638278271530");

Now its working fine.

Thanks

Vishnu

answered Nov 27, 2014 by Vishnu Garg (674 points)
thanks vishnu now device is registered, but when i send push message from app42 server but not received at user
Can you please provide me Push Logs of server, while sending Push Notification.
Message Sent to  device: APA91bFsZJeqRYG-avZwVzqh4x3RipJnV9w419N8ifeomOqIxMOQlxyuTGqCCRi9geUjvXKlvlC4z4pfR2HQtbNjHCxzwAS8XHdO0PYjRKOGovRonEIpL2zJ3ipoWe0z5jTllN6KxuSC8pXMzxWWiREceOHj-ja4a05u8MDZ3U0pR9TYnFq79XU : [ messageId=0:1417152890478786%5bd52458f9fd7ecd ]
Thanks for sharing logs with us,logs are indicating that push message is successfully sent by App42 to GCM.
                                  Actually, Push notification is not a real time feature and not guaranteed to deliver as it is on best effort as stated from GCM side. You might experience latency as message first comes to App42 then it is forwarded to GCM and then delivered on device. However should not exceed beyond few minutes.

 have you not received a single push or missed some.

Thanks
Vishnu
I hope your query has been resolved. Let us know if you need further assistance regarding this.
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
...