Push with Aurora push in ionic projects

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.