Ionic start-a jpushdemo-i Com.lawxin.fengkong Jpushdemo Blank
Meteor Add Cordova:[email protected]://github.com/jpush/jpush-phonegap-plugin/tarball/ f54252dd4f28874319c002cf0d066b6adb865c1f
Http://ionichina.com/topic/54f96e7b59a9bdef119234a1
After downloading, manually modify the following files, also can be implemented. It is important to note that the Aurora has a delay and will see the effect later.
Cn.jpush.phonegap.JPushPlugin.java
Src/android/androidmanifest.xml
Src/ios/pushconfig.plist
SOURCE Code:http://vdisk.weibo.com/s/ao-zyiozdutfi
Fetch Device ID
var initjpush = false; Template.tabs.created = function () { if (!initjpush) { Initjpush = true; Launch Aurora push service window.plugins.jPushPlugin.init (); Debug Mode Window.plugins.jPushPlugin.setDebugMode (true); Window.plugins.jPushPlugin.getRegistrationID (function (result) { if (result) { var Registrationid = result; } //alert ("init Jpush" +result); Console.log ("123getRegistrationID", result);});} ;
Push with Aurora push in ionic projects