GCM: get RegistrationId from Cordova hybrid app

2 posts, 0 answers
  1. Federico
    Federico avatar
    1 posts
    Member since:
    Jul 2016

    Posted 03 Aug 2016 Link to this post

    Hello, I've just started to develop apps for android.

    I've done an Hybrid Cordova app in telerik platform, so I'm using javascript as language.

    I need to get push notification sent from a server to my android device.

    I have a project in Firebase and I set thecorrect google API Key and ProjectId in my code.

    In order to send the message from the server, I need the Registration ID of my app. How could I get?

    I found a lot of examples in Java, but none in javascript.


  2. Anton Dobrev
    Anton Dobrev avatar
    546 posts

    Posted 09 Aug 2016 Link to this post


    You may consider using the Telerik Push Notifications plugin from here.

    It will give you the option to obtain the registration Id for the device and save it on your server or use the integration with Telerik Platform push notifications.

    One notable details is that it still relies on the GCM for Android (instead of FCM) and you will need to configure a project in the Google Developers console.

    Let me know if this answers your question.

    Anton Dobrev
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top