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

Push Notification for windows phone hybrid application.

1 Answer 69 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sairaj
Top achievements
Rank 1
Sairaj asked on 22 Jul 2015, 01:51 PM

Hi,

 I am trying to implement push notification for a hybrid application in windows phone. But I saw that javascript sdk doesn't work for windows phone. So is rest api the only option here ? whenever I try to register in web simulator for android also I got this error.

 "EverliveError: The push notification plugin is not available. Ensure that the pushNotification plugin is included and use after `deviceready` event has been fired."

I have enabled notification plug in and also the register method is fired after deviceReady.

 

So waht would be going wrong here ?

 

Thanks

1 Answer, 1 is accepted

Sort by
0
Anton Dobrev
Telerik team
answered on 27 Jul 2015, 01:06 PM
Hello Sairaj,

You can use the Backend Services JavaScript SDK in a hybrid app for iOS, Android and Windows Phone apps.

You are receiving the error because the native logic used by the SDK (and provided by the Push Notifications plugin for Cordova) is not available in the simulator. The push-related functionality does not work in the AppBuilder simulator and you need to deploy the app to actual devices.

I'd suggest that you examine the steps in this Getting Started article and the related resources to quickly get familiar with the implementation basics for push notifications.

Let me know if this helps.

Regards,
Anton Dobrev
Telerik
 

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

 
Tags
General Discussion
Asked by
Sairaj
Top achievements
Rank 1
Answers by
Anton Dobrev
Telerik team
Share this question
or