PushNotifications

5 posts, 0 answers
  1. Ganesh
    Ganesh avatar
    5 posts
    Member since:
    Jul 2015

    Posted 13 Oct 2015 Link to this post

     I want to implement push notification in telerik without BackEnd Services(Telerik Hybrid project) and send notification from my Rest services.Does telerik support  Push notification without its backend Services.and i need push token or device token to send it to server.if it is possible refer me some sample application
  2. Tsvetina
    Admin
    Tsvetina avatar
    1876 posts

    Posted 16 Oct 2015 Link to this post

    Hi Ganesh,

    You can implement a push notifications service yourself and use it in AppBuilder. This article describes the main steps you need to follow to implement such a service in general:
    How Push Notifications Work

    You can use third party push notification service providers or write a service of your own that does the entire job. However, writing the service yourself takes a lot of work and research, so you should consider if you really prefer to do it this way.

    Keep in mind, that if you only want to trigger the notification from your code and don't want to write the entire infrastructure yourself, it is still possible to use Backend Services push notifications from your code:
    Sending and Targeting Push Notifications (JS SDK)
    You can find the same information targeting other programming languages by browsing the docs by language:
    Backend Services docs by platform and language

    Regards,
    Tsvetina
    Telerik
    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
  3. Ganesh
    Ganesh avatar
    5 posts
    Member since:
    Jul 2015

    Posted 16 Oct 2015 Link to this post

    Hi Tsvetina ,

    Thanks for your information.Actually i need APN Token(Push token or device token) for that i am followed this blog

    http://www.telerik.com/blogs/push-notifications-with-cordova-icenium

    i writen this Code in device ready event  

     

     var apnSuccessfulRegistration = function(token) {
            alert("Successfully got a token:" + token);
        }

        var apnFailedRegistration = function(error) {
            alert("Error: " + error.toString());
        }
        
         var onNotificationAPN = function (event) {
            alert("on notification apn");
        }

        var deviceReady = function () {
             var pushNotification = window.plugins.pushNotification;
            try {
                    if (device.platform == "iOS") {
                        pushNotification.register(apnSuccessfulRegistration, apnFailedRegistration,{
                            "badge": "true",
                            "sound": "true",
                            "alert": "true",
                            "ecb": "onNotificationAPN"
                        });
                    } else {

                    }
            } catch (err) {
                alert("from error blog");
            }​

     

    I am getting the notification message .But callback is never fired either success or failure..I didn't get token.

    what Certificates needed either development or distribution provisional profiles and what certificates exactly needed in Cryptographic Identities. to get the device token.Could you please suggest me where i am wrong.

    Regards,

    Ganesh

  4. Tsvetina
    Admin
    Tsvetina avatar
    1876 posts

    Posted 21 Oct 2015 Link to this post

    Hello Ganesh,

    You can check whether the success and error callback functions are available to the global scope to ensure that they can be called. You can temporarily replace them with function definitions inside the register call and see if these functions are called:

    pushNotification.register(function() {alert("success")}, function() {alert("error")},{
                            "badge": "true",
                            "sound": "true",
                            "alert": "true",
                            "ecb": "onNotificationAPN"
                        });

    Additionally, you can review the push plugin documentation to check for any specifics introduced since this blog post was created, as it is quite old. 

    As for iOS provisioning, you can see more information about their provisioning requirements in their documentation here:
    Development and Production Environments


    Regards,
    Tsvetina
    Telerik
    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
  5. Ganesh
    Ganesh avatar
    5 posts
    Member since:
    Jul 2015

    Posted 23 Oct 2015 in reply to Tsvetina Link to this post

    Hi Tsvetina ,
    Thanks for your information.
Back to Top