Push Notification Problem on Android ( need help! )

Thread is closed for posting
2 posts, 0 answers
  1. michael
    michael avatar
    2 posts
    Member since:
    Sep 2015

    Posted 21 Oct 2015 Link to this post

    We are currently building a hybrid app using app builder to emulate Push service.

    We referenced 'Advanced Push Cordova' source code, and we used 'push-registrar.js' file’s code to authenticate the device and process registration.

    Following resulted in the process.

    1. We confirmed push token is added properly on registered device on the back end’s push service
    2. Sent push, but nothing happened on the device.
    3. It shows that backend properly pushed a message.

    We developed push service like below

    1. Install push plugin from the market
    2. Added Everlive script
    3. Built and Deployed
    4. Checked push token and registered device on the backend 
    5. Sent a Push alarm
    6. Cannot receive push <= problem

    Our Dev environment is
    * Cordova version : 3.7.0
    * Test Device : Android 4.4.2
    * Everlive script include: https://bs-static.cdn.telerik.com/1.5.6/everlive.all.min.js

    1. Do we need to set up different android manifest?
    2. Is it OK to deploy on devices in debug mode from AppBuilder?
    3. Is there any permission settings on the plugin?

    Any ideas ?
    What am I missing ?

    Thanks a lot for your help!




  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 23 Oct 2015 Link to this post

    Hi Michael,

    I am not sure what went wrong on your side. Can you please submit a ticket and attach your app or share its name - as the forums are public, I wouldn't recommend sharing your app here if it contains any private data. Having a support ticket, on the other side, will allow you to share any sensitive data or information that might help in the investigation.

    In the meantime, I attached a very simplistic app - I used the Blank JavaScript template and I followed these next steps to register a device for push notifications:
    • I created a Backend Services project in Telerik Platform
    • I added to the project the Push Notifications service
    • Enable Push Notifications in the Backend Services project
    • In AppBuilder in the project I created, I added the PushPlugin from the Plugin Marketplace
    • In index.html I added the everlive script you mentioned right after the cordova.js reference
    • I used the everlive.push.register() method to register the device in Backend Services for push notifications
    • I ran the app on an Android device and registered it invoking the push.register() method
    • In Telerik Platform, in the Backend Services portal I checked whether the device is listed under Push Notifications -> Devices
    • Then I sent a few push notifications from the Push Browser

    These steps are further described in the Push Notifications Getting Started tutorial. Since you're having troubles running the push notifications on a Google device, I would recommend that you examine the Push Notifications on Android troubleshooting article. It lists some of the causes for issues with push notifications on Android devices. Having the app built and deployed in debug mode shouldn't cause the described behavior.

    Also, you can compare the implementation in my app with yours to see if there are any differences that might lead to issues. Let me know if there are any that I can help address or if you have any other questions on the matter. Also, please let me know what information is available under your Backend Services project Push Browser for the status of the push messages or if you're using a different approach for sending the alarms.

    Tina Stancheva

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

Back to Top