android - Cordova Parse Plugin not working -
I am facing the issue of implementing in my Ionic project. The steps given below are I.
Problem
I always get a reference error: parsePlugin not defined .
The steps were followed
a Run this command in the ionic project directory.
Add Cordova Plugin https://github.com/benjie/phonegap-parse-plugin
b Add an Android Platform Add Ionic Platform Android
c. Add this code to www / js / app.js .
.run (function ($ ionicPlatform) {$ ionicPlatform.ready (function () {// Hide by default by default (to convert it to the episory bar above the keyboard) // for form input) if (window.cordova & window.cordova.plugins.Keyboard) {cordova.plugins.Keyboard.hideKeyboardAccessoryBar (true);}} (Window.StatusBar) {// org.apache. Cordova.statusbar is required StatusBar.styleDefault ();} {parsePlugin.initialize ('XXX', 'YYY', function) {try the alert ('success');}, function (e) {warning (' error ';});} Catch (mistake) {warning (' parse error '+ err.message) ; // This is executed all the time}}}}} Note
a plugin is installed and plugins / Org.apache.cordova.core.parseplugin
b. is the platform / Android / res / XML / config.xm
& lt; feature name = "parseplugin" & gt; & lt; param name = "android-package" value = "org.apache.cordova.core.ParsePlugin" /> & Lt; / Feature & gt; c. In index.html & lt; Script src = "cordova.js" & gt; & Lt; / Script & gt;
d. AndroidManifest.xml
& lt; Service Android: name = "com.parse.PushService" /> & Lt; Receiver Android: name = "com.parse.ParseBroadcastReceiver" & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "android.intent.action.BOOT_COMPLETED" /> & Lt; Action Android: name = "android.intent.action.USER_PRESENT" /> & Lt; / Intent-Filter & gt; & Lt; / Receiver & gt; & Lt; Receiver Android: name = "com.parse.GcmBroadcastReceiver" Android: permission = "com.google.android.c2dm.permission.SEND" & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "com.google.android.c2dm.intent.RECEIVE" /> & Lt; Action Android: name = "com.google.android.c2dm.intent.REGISTRATION" /> & Lt; Category android: name = "com.ionicframework.ecopulse420832" /> & Lt; / Intent-Filter & gt; & Lt; / Receiver & gt; Can anyone tell me whether I am missing here to check or check here?
Comments
Post a Comment