push notification on WP8

15 posts, 0 answers
  1. Michael
    Michael avatar
    151 posts
    Member since:
    Jan 2012

    Posted 14 May 2014 Link to this post

    How can I extend this code to receive notifications on Windows devices?

        app.onAndroidPushReceived = function(args) {
            // do android stuff
        };
        
        app.onIosPushReceived = function(args) {
            // do ios stuff
        };
        
        app.enablePushNotifications = function () {
            //Initialization settings
            var pushSettings = {
                android: {
                    senderID: androidProjectNumber
                },
                iOS: {
                    badge: "true",
                    sound: "true",
                    alert: "true"
                },
                notificationCallbackAndroid : app.onAndroidPushReceived,
                notificationCallbackIOS: app.onIosPushReceived
            }
  2. Anton Dobrev
    Admin
    Anton Dobrev avatar
    539 posts

    Posted 16 May 2014 Link to this post

    Hi Michael,

    The support for push notifications for Windows Phone in hybrid apps will be available as an out-of-the-box functionality in the Backend Services JavaScript SDK in a very short time frame. We are currently testing the implementation.

    We will keep this thread posted with the news and with the sample code.

    Please, let us know if further questions arise.

    Regards,
    Anton Dobrev
    Telerik
     
    Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
     
  3. Michael
    Michael avatar
    151 posts
    Member since:
    Jan 2012

    Posted 16 May 2014 in reply to Anton Dobrev Link to this post

    Is "Backend Services JavaScript SDK" different from the everlive.min.js implementation that we are currently using?
  4. Anton Dobrev
    Admin
    Anton Dobrev avatar
    539 posts

    Posted 20 May 2014 Link to this post

    Hello Michael,

    The Backend Services JavaScript SDK and the everlive.all.min.js file refer to the same implementation of JavaScript functions over the Backend Services REST API. You can read more about this matter in the JS SDK introduction page of the Backend Services documentation.

    Regards,
    Anton Dobrev
    Telerik
     
    Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
     
  5. Michael
    Michael avatar
    151 posts
    Member since:
    Jan 2012

    Posted 12 Jun 2014 in reply to Anton Dobrev Link to this post

    Is there any ETA on windows integration for the JS sdk?
  6. Anton Dobrev
    Admin
    Anton Dobrev avatar
    539 posts

    Posted 16 Jun 2014 Link to this post

    Hi Michael,

    We are currently eagerly looking to introducing some needed refinements in the Windows Phone 8 part of the JavaScript SDK. This will occur in the next version of the SDK.

    The good news is that you can already explore the main logic for initializing and handling the push notifications in hybrid WP8 apps and using Telerik Backend Services.

    We have just released a new push sample app. The app showcases the required configuration in order to integrate WP8 push notifications and Backend Services in a hybrid app built with AppBuilder.

    The relevant WP8 code can be found in the push-registrar.js file. Also, you will need to use the included everlive.all.min.js file in your testing project.

    The app can receive Raw, Toast and Tile push notifications in WP8.

    Each notification for WP, created from the UI portal will be a Toast by default.

    In order to test the Tile notifications for Windows Phone in a hybrid app,  you can pin the app to the start menu and then send the following payload to the Backend Services REST API.

    {
        "WindowsPhone": {
            "Tile": {
                "Title": "some title",
                "Count": 5
            }
    }

    Further, you can extend the payload according to the supported structure.

    The notable point here is that for Tile notifications your app needs to use a "TemplateFlip", specified and configured in the Windows Phone Manifest file.

    We will be glad to hear your feedback on this. We will keep this thread posted when the next build is available.

    Please, let us know if further questions arise.

    Regards,
    Anton Dobrev
    Telerik
     
    Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
     
  7. wku
    wku avatar
    13 posts
    Member since:
    Sep 2014

    Posted 07 Oct 2014 Link to this post

    hi, is there any update for WP push notification on Javascript SDK?
  8. Anton Dobrev
    Admin
    Anton Dobrev avatar
    539 posts

    Posted 09 Oct 2014 Link to this post

    Hi,

    @wku

    Thank you for your interest. Unfortunately, the issue lies in the push plugin for WP 8 used under the hood by the JavaScript SDK, which is not behaving reliably and predictably enough due to some Cordova specifics. We are researching the options to re-design/re-configure the plugin in a way that is more robust and usable. However, we cannot commit to a particular time frame for now. I will post a reply here with the progress on this task.

    Let me know if you have questions.

    Regards,
    Anton Dobrev
    Telerik
     
    Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
     
  9. wku
    wku avatar
    13 posts
    Member since:
    Sep 2014

    Posted 04 Nov 2014 in reply to Anton Dobrev Link to this post

    Hi Anton, any update?
    Thanks in advance for your reply.
  10. Anton Dobrev
    Admin
    Anton Dobrev avatar
    539 posts

    Posted 06 Nov 2014 Link to this post

    Hi,

    Thank you for contacting. We are currently working on the plugin architecture and functionality. However we cannot commit to an actual time frame right now but this is expected with our next release.

    Let me know if you have questions.

    Regards,
    Anton Dobrev
    Telerik
     
    Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
     
  11. Anton Dobrev
    Admin
    Anton Dobrev avatar
    539 posts

    Posted 23 Dec 2014 Link to this post

    Hello all,

    Telerik just introduced the Telerik Push Notifications plugin that works with Telerik Backend Services and supports iOS, Android and Windows Phone 8. You can take a look into the samples here and here in order to test the functionality ​and explore the docs from here.

    In your preferred Telerik AppBuilder client you need to enable the PushPlugin version 2.4.3 or higher. Alternatively, download the Telerik Push Notifications plugin from the Marketplace.

    The samples are also configured to receive Tile notifications for Windows Phone 8. In order to test them, pin the app to the start menu and send the following payload to the Backend Services API:
    {
      "WindowsPhone": {
        "Tile": {
          "Title": "Hello there",
          "Count": 5
        }
      }
    }
    In order to edit the template used for Tile notifications open the Windows Phone Manifest file and configure the Flip Tile Template.

    Note that the notificationCallbackWP8 is called only when the app is in the foreground and a notification is received. Opening the app from a push notification does not invoke the callback. This behavior complies with the native behavior in Windows Phone 8.

    Further, you can learn more about the supported structure for sending push notifications in Backend Services here.

    Let me know if you have questions.

    Regards,
    Anton Dobrev
    Telerik
     
    Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
     
  12. Petri
    Petri avatar
    7 posts
    Member since:
    Jun 2014

    Posted 09 Jan 2015 in reply to Anton Dobrev Link to this post

    Could the Telerik Push Notifications plugin be used with PhoneGap Build?
  13. Anton Dobrev
    Admin
    Anton Dobrev avatar
    539 posts

    Posted 12 Jan 2015 Link to this post

    Hello,

    @Mika
    The plugin is Plugman-compatible and you should be able to use it within Adobe PhoneGap Build by installing it from its repository. There are no dependencies specific for the Telerik AppBuilder plugin infrastructure.

    Let me know if this works for you and if you have questions.

    Regards,
    Anton Dobrev
    Telerik
     
    Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
     
  14. Petri
    Petri avatar
    7 posts
    Member since:
    Jun 2014

    Posted 14 Jan 2015 in reply to Anton Dobrev Link to this post

    Thank you Anton. I actually am using push notifications on WP with the JacaScript SDK/REST API, but it's good to know there's an alternative. I do have a question about WindowsPhone.Toast.LandingUri, but I felt it was better to ask it in a new thread.
  15. Anton Dobrev
    Admin
    Anton Dobrev avatar
    539 posts

    Posted 15 Jan 2015 Link to this post

    Hi,

    @Mika
    Please, find my reply in your other thread.

    Best regards,
    Anton Dobrev
    Telerik
     
    Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
     
Back to Top