parse.com - Parsh Push Notification In Windows Phone 8 using Cordova Phonegap -
i trying integrate push notification using parse windows phone using phonegap. have use https://github.com/avivais/phonegap-parse-plugin plugin , use app , client id .net id.
after run app in device see record in parse. show 1 registered device.but when send test push parse backend not receiving. :(
i have tried lot of things.but no found google. please me.thanks in advance.
i late answer you, it'll of use else. having issue , decided not through cordova, instead utilize .net way provided parse. poorly elsewhere documented (except parse) i've experienced, , got frustrated doing on android , ended doing through java.
first, open project folder, go platforms folder , wp8 folder , open platforms visual studio's solution file.
then right click c# project directory in solution explorer shown below. select "manage nuget packages".
then search "parse" in nuget package manager , click install:
then go app.xaml.cs
file (shown in screenshot):
and add following after imports in c# file: using parse;
then inside app class constructor inside same app.xaml.cs
file add following:
this.initializecomponent(); this.suspending += onsuspending; parseclient.initialize(app_id_here, .net_key_here); // these values come parse this.startup += async (sender, args) => { parseanalytics.trackappopens(rootframe); await parsepush.subscribeasync(""); };
then lastly enable id_cap_push_notification
capability in wmappmanifest.xml
shown:
once done should able receive unauthenticated push notifications parse. hope helps, had lot of issues myself finding working cordova implementation windows phone 8.
Comments
Post a Comment