Push notifications not sending

5 posts, 1 answers
  1. Answer
    Pimskie
    Pimskie avatar
    6 posts
    Member since:
    Sep 2013

    Posted 25 Sep 2013 Link to this post

    Since a week I'm using Icenium with Everlive and trying to intergrate push notifications. 

    So far I only tried it for Android. I used my Android project number in the code and in Everlive I filled in my Android API key. My project is based on the Everlive push notification sample and everything seems to work fine. The devices show up in Everlive. 

    But when I send a notification from Everlive they aren't send, so it seems. And sometimes I receive the notification about 3 hours later. When I check the sent notifications in Everlive it also always says '0' next to devices. 

    Am I still doing something wrong / forgetting something?

  2. Lyubomir Dokov
    Admin
    Lyubomir Dokov avatar
    43 posts

    Posted 25 Sep 2013 Link to this post

    Hi,

    There are several things that might be wrong:
    - Have you enabled the Android push notifications from the settings of your app in Everlive?
    - Are you sure you are not in 'emulator mode'? While in emulator mode the generated token is a fake token, and cannot be used to send actual push notifications. You can check this by looking at your push token in the Everlive backend. It should not be anything like "some_token" or "fake_token".

    If none of the above works, can you please try to send a notification using this software:
    http://gcm.codeplex.com/

    With the above software you can use the same push token and android API key and check if the problem is in getting a valid token or in the Everlive part that sends push notifications to GCM.


    Regards,
    Lyubomir Dokov
    Telerik

    Big news for mobile app and .NET developers! Hear about it at our Release Keynote. Thursday, September 26th, 11AM EDT
    Do you enjoy Icenium? Vote for it in Windows IT Pro Community Choice Awards as Best Cloud Computing Product or Service (Category 5).
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
  3. Pimskie
    Pimskie avatar
    6 posts
    Member since:
    Sep 2013

    Posted 25 Sep 2013 Link to this post

    Hi Lyubomir,

    Thank you for the reply. I indeed enabled the notifications in Everlive. I'm also not in emulator mode. It seems the devices have valid tokens. 

    I tried sending a notification with the Android GCM Sender. Although I don't receive a notification, the software gives back "succes:1":
    {"multicast_id":9205955367833435473,"success":1,"failure":0,"canonical_ids":0,"results":[{"message_id":"0:1380115859764324%02364358f9fd7ecd"}]}


  4. Lyubomir Dokov
    Admin
    Lyubomir Dokov avatar
    43 posts

    Posted 27 Sep 2013 Link to this post

    Hi,

    When we tested the GCM sender worked always. So, it is either something with the device or something with the token.

    Is there any chance you can try with a different Android device? Also, are you using our sample or you are trying to integrate push in your own app? If it is the latter, can you please test with the unchanged sample that we distribute? This will help us locate the problem.


    Regards,
    Lyubomir Dokov
    Telerik

    Do you enjoy Icenium? Vote for it in Windows IT Pro Community Choice Awards as Best Cloud Computing Product or Service (Category 5).
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
  5. Pimskie
    Pimskie avatar
    6 posts
    Member since:
    Sep 2013

    Posted 01 Oct 2013 Link to this post

    Hi Lyubomir, 

    Thanks for the response. The sample app worked out of the box without problems. I recoded my app (the notification part) and it seems it is working now. So I guess it was due my own mistake. Thank you for the help anyways!

    Regards,

    Pim.

     

     
Back to Top