This is a migrated thread and some comments may be shown as answers.

push notification on WP8

14 Answers 111 Views
Push Notifications
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michael
Top achievements
Rank 1
Michael asked on 14 May 2014, 09:32 PM
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
        }

14 Answers, 1 is accepted

Sort by
0
Anton Dobrev
Telerik team
answered on 16 May 2014, 04:30 PM
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.
 
0
Michael
Top achievements
Rank 1
answered on 16 May 2014, 06:30 PM
Is "Backend Services JavaScript SDK" different from the everlive.min.js implementation that we are currently using?
0
Anton Dobrev
Telerik team
answered on 20 May 2014, 01:58 PM
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.
 
0
Michael
Top achievements
Rank 1
answered on 12 Jun 2014, 09:53 PM
Is there any ETA on windows integration for the JS sdk?
0
Anton Dobrev
Telerik team
answered on 16 Jun 2014, 04:49 PM
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.
 
0
wku
Top achievements
Rank 1
answered on 07 Oct 2014, 06:33 AM
hi, is there any update for WP push notification on Javascript SDK?
0
Anton Dobrev
Telerik team
answered on 09 Oct 2014, 07:14 AM
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.
 
0
wku
Top achievements
Rank 1
answered on 05 Nov 2014, 02:45 AM
Hi Anton, any update?
Thanks in advance for your reply.
0
Anton Dobrev
Telerik team
answered on 06 Nov 2014, 02:47 PM
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.
 
0
Anton Dobrev
Telerik team
answered on 23 Dec 2014, 04:07 PM
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.
 
0
Tuomo
Top achievements
Rank 1
answered on 09 Jan 2015, 08:33 AM
Could the Telerik Push Notifications plugin be used with PhoneGap Build?
0
Anton Dobrev
Telerik team
answered on 12 Jan 2015, 04:40 PM
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.
 
0
Tuomo
Top achievements
Rank 1
answered on 14 Jan 2015, 08:11 AM
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.
0
Anton Dobrev
Telerik team
answered on 15 Jan 2015, 06:41 PM
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.
 
Tags
Push Notifications
Asked by
Michael
Top achievements
Rank 1
Answers by
Anton Dobrev
Telerik team
Michael
Top achievements
Rank 1
wku
Top achievements
Rank 1
Tuomo
Top achievements
Rank 1
Share this question
or