From 4f4a7e44f86ce05fd14453859a59e1f2863331fa Mon Sep 17 00:00:00 2001 From: Hevin Date: Thu, 7 Dec 2017 21:35:43 +0800 Subject: [PATCH] build ionic-native/jpush --- jpush/index.d.ts | 83 +++++++++ jpush/index.js | 376 ++++++++++++++++++++++++++++++++++++++ jpush/index.js.map | 1 + jpush/index.metadata.json | 1 + jpush/package.json | 18 ++ 5 files changed, 479 insertions(+) create mode 100644 jpush/index.d.ts create mode 100644 jpush/index.js create mode 100644 jpush/index.js.map create mode 100644 jpush/index.metadata.json create mode 100644 jpush/package.json diff --git a/jpush/index.d.ts b/jpush/index.d.ts new file mode 100644 index 0000000..9d2b94e --- /dev/null +++ b/jpush/index.d.ts @@ -0,0 +1,83 @@ +import { IonicNativePlugin } from '@ionic-native/core'; +export declare class JPush extends IonicNativePlugin { + init(): Promise; + setDebugMode(enable: boolean): Promise; + getRegistrationID(): Promise; + stopPush(): Promise; + resumePush(): Promise; + isPushStopped(): Promise; + /** + * @param params { sequence: number, tags: [string, string] } + */ + setTags(params: object): Promise; + /** + * @param params { sequence: number, tags: [string, string] } + */ + addTags(params: object): Promise; + /** + * @param params { sequence: number, tags: [string, string] } + */ + deleteTags(params: object): Promise; + /** + * @param params { sequence: number } + */ + cleanTags(params: object): Promise; + /** + * @param params { sequence: number } + */ + getAllTags(params: object): Promise; + /** + * @param params { sequence: number, tag: string } + */ + checkTagBindState(params: object): Promise; + /** + * @param params { sequence: number, alias: string } + */ + setAlias(params: object): Promise; + /** + * @param params { sequence: number } + */ + deleteAlias(params: object): Promise; + /** + * @param params { sequence: number } + */ + getAlias(params: object): Promise; + /** + * Determinate whether the application notification has been opened. + * + * iOS: 0: closed; >1: opened. + * UIRemoteNotificationTypeNone = 0, + * UIRemoteNotificationTypeBadge = 1 << 0, + * UIRemoteNotificationTypeSound = 1 << 1, + * UIRemoteNotificationTypeAlert = 1 << 2, + * UIRemoteNotificationTypeNewsstandContentAvailability = 1 << 3 + * + * Android: 0: closed; 1: opened. + */ + getUserNotificationSettings(): Promise; + clearLocalNotifications(): Promise; + setBadge(badge: number): Promise; + resetBadge(): Promise; + setApplicationIconBadgeNumber(badge: number): Promise; + getApplicationIconBadgeNumber(): Promise; + addLocalNotificationForIOS(delayTime: number, content: string, badge: number, notificationId: number, extras: string): Promise; + deleteLocalNotificationWithIdentifierKeyInIOS(identifierKey: string): Promise; + addDismissActions(actions: Array, categoryId: string): Promise; + addNotificationActions(actions: Array, categoryId: string): Promise; + setLocation(latitude: number, longitude: number): Promise; + startLogPageView(pageName: string): Promise; + stopLogPageView(pageName: string): Promise; + beginLogPageView(pageName: string, duration: number): Promise; + getConnectionState(): Promise; + setBasicPushNotificationBuilder(): Promise; + setCustomPushNotificationBuilder(): Promise; + clearAllNotification(): Promise; + clearNotificationById(id: number): Promise; + setLatestNotificationNum(num: number): Promise; + addLocalNotification(builderId: number, content: string, title: string, notificationId: number, broadcastTime: number, extras: string): Promise; + removeLocalNotification(notificationId: number): Promise; + reportNotificationOpened(msgId: number): Promise; + requestPermission(): Promise; + setSilenceTime(startHour: number, startMinute: number, endHour: number, endMinute: number): Promise; + setPushTime(weekdays: Array, startHour: number, endHour: number): Promise; +} diff --git a/jpush/index.js b/jpush/index.js new file mode 100644 index 0000000..a1aadca --- /dev/null +++ b/jpush/index.js @@ -0,0 +1,376 @@ +var __extends = (this && this.__extends) || (function () { + var extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Injectable } from '@angular/core'; +var JPush = (function (_super) { + __extends(JPush, _super); + function JPush() { + return _super !== null && _super.apply(this, arguments) || this; + } + JPush.prototype.init = function () { return; }; + JPush.prototype.setDebugMode = function (enable) { return; }; + JPush.prototype.getRegistrationID = function () { return; }; + JPush.prototype.stopPush = function () { return; }; + JPush.prototype.resumePush = function () { return; }; + JPush.prototype.isPushStopped = function () { return; }; + /** + * @param params { sequence: number, tags: [string, string] } + */ + JPush.prototype.setTags = function (params) { return; }; + /** + * @param params { sequence: number, tags: [string, string] } + */ + JPush.prototype.addTags = function (params) { return; }; + /** + * @param params { sequence: number, tags: [string, string] } + */ + JPush.prototype.deleteTags = function (params) { return; }; + /** + * @param params { sequence: number } + */ + JPush.prototype.cleanTags = function (params) { return; }; + /** + * @param params { sequence: number } + */ + JPush.prototype.getAllTags = function (params) { return; }; + /** + * @param params { sequence: number, tag: string } + */ + JPush.prototype.checkTagBindState = function (params) { return; }; + /** + * @param params { sequence: number, alias: string } + */ + JPush.prototype.setAlias = function (params) { return; }; + /** + * @param params { sequence: number } + */ + JPush.prototype.deleteAlias = function (params) { return; }; + /** + * @param params { sequence: number } + */ + JPush.prototype.getAlias = function (params) { return; }; + /** + * Determinate whether the application notification has been opened. + * + * iOS: 0: closed; >1: opened. + * UIRemoteNotificationTypeNone = 0, + * UIRemoteNotificationTypeBadge = 1 << 0, + * UIRemoteNotificationTypeSound = 1 << 1, + * UIRemoteNotificationTypeAlert = 1 << 2, + * UIRemoteNotificationTypeNewsstandContentAvailability = 1 << 3 + * + * Android: 0: closed; 1: opened. + */ + JPush.prototype.getUserNotificationSettings = function () { return; }; + JPush.prototype.clearLocalNotifications = function () { return; }; + // iOS API - start + JPush.prototype.setBadge = function (badge) { return; }; + JPush.prototype.resetBadge = function () { return; }; + JPush.prototype.setApplicationIconBadgeNumber = function (badge) { return; }; + JPush.prototype.getApplicationIconBadgeNumber = function () { return; }; + JPush.prototype.addLocalNotificationForIOS = function (delayTime, content, badge, notificationId, extras) { return; }; + JPush.prototype.deleteLocalNotificationWithIdentifierKeyInIOS = function (identifierKey) { return; }; + JPush.prototype.addDismissActions = function (actions, categoryId) { return; }; + JPush.prototype.addNotificationActions = function (actions, categoryId) { return; }; + JPush.prototype.setLocation = function (latitude, longitude) { return; }; + JPush.prototype.startLogPageView = function (pageName) { return; }; + JPush.prototype.stopLogPageView = function (pageName) { return; }; + JPush.prototype.beginLogPageView = function (pageName, duration) { return; }; + // iOS API - end + // Android API - start + JPush.prototype.getConnectionState = function () { return; }; + JPush.prototype.setBasicPushNotificationBuilder = function () { return; }; + JPush.prototype.setCustomPushNotificationBuilder = function () { return; }; + JPush.prototype.clearAllNotification = function () { return; }; + JPush.prototype.clearNotificationById = function (id) { return; }; + JPush.prototype.setLatestNotificationNum = function (num) { return; }; + JPush.prototype.addLocalNotification = function (builderId, content, title, notificationId, broadcastTime, extras) { return; }; + JPush.prototype.removeLocalNotification = function (notificationId) { return; }; + JPush.prototype.reportNotificationOpened = function (msgId) { return; }; + JPush.prototype.requestPermission = function () { return; }; + JPush.prototype.setSilenceTime = function (startHour, startMinute, endHour, endMinute) { return; }; + JPush.prototype.setPushTime = function (weekdays, startHour, endHour) { return; }; + // Android API - end + JPush.decorators = [ + { type: Injectable }, + ]; + /** @nocollapse */ + JPush.ctorParameters = function () { return []; }; + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", []), + __metadata("design:returntype", Promise) + ], JPush.prototype, "init", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Boolean]), + __metadata("design:returntype", Promise) + ], JPush.prototype, "setDebugMode", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", []), + __metadata("design:returntype", Promise) + ], JPush.prototype, "getRegistrationID", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", []), + __metadata("design:returntype", Promise) + ], JPush.prototype, "stopPush", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", []), + __metadata("design:returntype", Promise) + ], JPush.prototype, "resumePush", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", []), + __metadata("design:returntype", Promise) + ], JPush.prototype, "isPushStopped", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Object]), + __metadata("design:returntype", Promise) + ], JPush.prototype, "setTags", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Object]), + __metadata("design:returntype", Promise) + ], JPush.prototype, "addTags", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Object]), + __metadata("design:returntype", Promise) + ], JPush.prototype, "deleteTags", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Object]), + __metadata("design:returntype", Promise) + ], JPush.prototype, "cleanTags", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Object]), + __metadata("design:returntype", Promise) + ], JPush.prototype, "getAllTags", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Object]), + __metadata("design:returntype", Promise) + ], JPush.prototype, "checkTagBindState", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Object]), + __metadata("design:returntype", Promise) + ], JPush.prototype, "setAlias", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Object]), + __metadata("design:returntype", Promise) + ], JPush.prototype, "deleteAlias", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Object]), + __metadata("design:returntype", Promise) + ], JPush.prototype, "getAlias", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", []), + __metadata("design:returntype", Promise) + ], JPush.prototype, "getUserNotificationSettings", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", []), + __metadata("design:returntype", Promise) + ], JPush.prototype, "clearLocalNotifications", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Number]), + __metadata("design:returntype", Promise) + ], JPush.prototype, "setBadge", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", []), + __metadata("design:returntype", Promise) + ], JPush.prototype, "resetBadge", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Number]), + __metadata("design:returntype", Promise) + ], JPush.prototype, "setApplicationIconBadgeNumber", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", []), + __metadata("design:returntype", Promise) + ], JPush.prototype, "getApplicationIconBadgeNumber", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Number, String, Number, Number, String]), + __metadata("design:returntype", Promise) + ], JPush.prototype, "addLocalNotificationForIOS", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", [String]), + __metadata("design:returntype", Promise) + ], JPush.prototype, "deleteLocalNotificationWithIdentifierKeyInIOS", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Array, String]), + __metadata("design:returntype", Promise) + ], JPush.prototype, "addDismissActions", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Array, String]), + __metadata("design:returntype", Promise) + ], JPush.prototype, "addNotificationActions", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Number, Number]), + __metadata("design:returntype", Promise) + ], JPush.prototype, "setLocation", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", [String]), + __metadata("design:returntype", Promise) + ], JPush.prototype, "startLogPageView", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", [String]), + __metadata("design:returntype", Promise) + ], JPush.prototype, "stopLogPageView", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", [String, Number]), + __metadata("design:returntype", Promise) + ], JPush.prototype, "beginLogPageView", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", []), + __metadata("design:returntype", Promise) + ], JPush.prototype, "getConnectionState", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", []), + __metadata("design:returntype", Promise) + ], JPush.prototype, "setBasicPushNotificationBuilder", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", []), + __metadata("design:returntype", Promise) + ], JPush.prototype, "setCustomPushNotificationBuilder", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", []), + __metadata("design:returntype", Promise) + ], JPush.prototype, "clearAllNotification", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Number]), + __metadata("design:returntype", Promise) + ], JPush.prototype, "clearNotificationById", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Number]), + __metadata("design:returntype", Promise) + ], JPush.prototype, "setLatestNotificationNum", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Number, String, String, Number, Number, String]), + __metadata("design:returntype", Promise) + ], JPush.prototype, "addLocalNotification", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Number]), + __metadata("design:returntype", Promise) + ], JPush.prototype, "removeLocalNotification", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Number]), + __metadata("design:returntype", Promise) + ], JPush.prototype, "reportNotificationOpened", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", []), + __metadata("design:returntype", Promise) + ], JPush.prototype, "requestPermission", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Number, Number, Number, Number]), + __metadata("design:returntype", Promise) + ], JPush.prototype, "setSilenceTime", null); + __decorate([ + Cordova(), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Array, Number, Number]), + __metadata("design:returntype", Promise) + ], JPush.prototype, "setPushTime", null); + JPush = __decorate([ + Plugin({ + pluginName: 'JPush', + plugin: 'jpush-phonegap-plugin', + pluginRef: 'jPush', + repo: 'https://github.com/jpush/jpush-phonegap-plugin', + install: 'ionic cordova plugin add jpush-phonegap-plugin --variable APP_KEY=your_app_key', + installVariables: ['APP_KEY'], + platforms: ['Android', 'iOS'] + }) + ], JPush); + return JPush; +}(IonicNativePlugin)); +export { JPush }; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/jpush/index.js.map b/jpush/index.js.map new file mode 100644 index 0000000..9c9af91 --- /dev/null +++ b/jpush/index.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/@ionic-native/plugins/jpush/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,MAAA,EAAQ,OAAA,EAAS,iBAAA,EAAkB,MAAO,oBAAA,CAAqB;AACxE,OAAO,EAAE,UAAA,EAAW,MAAO,eAAA,CAAgB;AAY3C;IAA2B,yBAAiB;IAA5C;;IAiLA,CAAC;IA9KC,oBAAI,GAAJ,cAAuB,MAAM,CAAC,CAAC,CAAC;IAGhC,4BAAY,GAAZ,UAAa,MAAe,IAAkB,MAAM,CAAC,CAAC,CAAC;IAGvD,iCAAiB,GAAjB,cAAoC,MAAM,CAAC,CAAC,CAAC;IAG7C,wBAAQ,GAAR,cAA2B,MAAM,CAAC,CAAC,CAAC;IAGpC,0BAAU,GAAV,cAA6B,MAAM,CAAC,CAAC,CAAC;IAGtC,6BAAa,GAAb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;;yCACsB,KAAK;;uDAAuD;IAG5F;QADC,OAAO,EAAE;;;;4CACgE;IAG1E;QADC,OAAO,EAAE;;;;iDACkD;IAG5D;QADC,OAAO,EAAE;;;;gDACiD;IAG3D;QADC,OAAO,EAAE;;;;iDACoE;IAO9E;QADC,OAAO,EAAE;;;;mDACoC;IAG9C;QADC,OAAO,EAAE;;;;gEACiD;IAG3D;QADC,OAAO,EAAE;;;;iEACkD;IAG5D;QADC,OAAO,EAAE;;;;qDACsC;IAGhD;QADC,OAAO,EAAE;;;;sDACiD;IAG3D;QADC,OAAO,EAAE;;;;yDACqD;IAG/D;QADC,OAAO,EAAE;;;;qDACsJ;IAGhK;QADC,OAAO,EAAE;;;;wDAC+D;IAGzE;QADC,OAAO,EAAE;;;;yDACuD;IAGjE;QADC,OAAO,EAAE;;;;kDACmC;IAG7C;QADC,OAAO,EAAE;;;;+CAC0G;IAGpH;QADC,OAAO,EAAE;;yCACY,KAAK;;4CAAuE;IAxKvF,KAAK;QAVjB,MAAM,CAAC;YACN,UAAU,EAAE,OAAO;YACnB,MAAM,EAAE,uBAAuB;YAC/B,SAAS,EAAE,OAAO;YAClB,IAAI,EAAE,gDAAgD;YACtD,OAAO,EAAE,gFAAgF;YACzF,gBAAgB,EAAE,CAAC,SAAS,CAAC;YAC7B,SAAS,EAAE,CAAC,SAAS,EAAE,KAAK,CAAC;SAC9B,CAAC;OAEW,KAAK,CAiLjB;IAAD,YAAC;CAjLD,AAiLC,CAjL0B,iBAAiB,GAiL3C;SAjLY,KAAK","file":"index.js","sourceRoot":"","sourcesContent":["import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';\nimport { Injectable } from '@angular/core';\n\n@Plugin({\n pluginName: 'JPush',\n plugin: 'jpush-phonegap-plugin',\n pluginRef: 'jPush',\n repo: 'https://github.com/jpush/jpush-phonegap-plugin',\n install: 'ionic cordova plugin add jpush-phonegap-plugin --variable APP_KEY=your_app_key',\n installVariables: ['APP_KEY'],\n platforms: ['Android', 'iOS']\n})\n\nexport class JPush extends IonicNativePlugin {\n\n @Cordova()\n init(): Promise { return; }\n\n @Cordova()\n setDebugMode(enable: boolean): Promise { return; }\n\n @Cordova()\n getRegistrationID(): Promise { return; }\n\n @Cordova()\n stopPush(): Promise { return; }\n\n @Cordova()\n resumePush(): Promise { return; }\n\n @Cordova()\n isPushStopped(): Promise { return; }\n\n /**\n * @param params { sequence: number, tags: [string, string] }\n */\n @Cordova()\n setTags(params: object): Promise { return; }\n\n /**\n * @param params { sequence: number, tags: [string, string] }\n */\n @Cordova()\n addTags(params: object): Promise { return; }\n\n /**\n * @param params { sequence: number, tags: [string, string] }\n */\n @Cordova()\n deleteTags(params: object): Promise { return; }\n\n /**\n * @param params { sequence: number }\n */\n @Cordova()\n cleanTags(params: object): Promise { return; }\n\n /**\n * @param params { sequence: number }\n */\n @Cordova()\n getAllTags(params: object): Promise { return; }\n\n /**\n * @param params { sequence: number, tag: string }\n */\n @Cordova()\n checkTagBindState(params: object): Promise { return; }\n\n /**\n * @param params { sequence: number, alias: string }\n */\n @Cordova()\n setAlias(params: object): Promise { return; }\n\n /**\n * @param params { sequence: number }\n */\n @Cordova()\n deleteAlias(params: object): Promise { return; }\n\n /**\n * @param params { sequence: number }\n */\n @Cordova()\n getAlias(params: object): Promise { return; }\n\n /**\n * Determinate whether the application notification has been opened.\n * \n * iOS: 0: closed; >1: opened.\n * UIRemoteNotificationTypeNone = 0,\n * UIRemoteNotificationTypeBadge = 1 << 0,\n * UIRemoteNotificationTypeSound = 1 << 1,\n * UIRemoteNotificationTypeAlert = 1 << 2,\n * UIRemoteNotificationTypeNewsstandContentAvailability = 1 << 3\n * \n * Android: 0: closed; 1: opened.\n */\n @Cordova()\n getUserNotificationSettings(): Promise { return; }\n\n @Cordova()\n clearLocalNotifications(): Promise { return; }\n\n // iOS API - start\n\n @Cordova()\n setBadge(badge: number): Promise { return; }\n\n @Cordova()\n resetBadge(): Promise { return; }\n\n @Cordova()\n setApplicationIconBadgeNumber(badge: number): Promise { return; }\n\n @Cordova()\n getApplicationIconBadgeNumber(): Promise { return; }\n\n @Cordova()\n addLocalNotificationForIOS(delayTime: number, content: string, badge: number, notificationId: number, extras: string): Promise { return; }\n\n @Cordova()\n deleteLocalNotificationWithIdentifierKeyInIOS(identifierKey: string): Promise { return; }\n\n @Cordova()\n addDismissActions(actions: Array, categoryId: string): Promise { return; }\n\n @Cordova()\n addNotificationActions(actions: Array, categoryId: string): Promise { return; }\n\n @Cordova()\n setLocation(latitude: number, longitude: number): Promise { return; }\n\n @Cordova()\n startLogPageView(pageName: string): Promise { return; }\n\n @Cordova()\n stopLogPageView(pageName: string): Promise { return; }\n\n @Cordova()\n beginLogPageView(pageName: string, duration: number): Promise { return; }\n\n // iOS API - end\n\n // Android API - start\n\n @Cordova()\n getConnectionState(): Promise { return; }\n\n @Cordova()\n setBasicPushNotificationBuilder(): Promise { return; }\n\n @Cordova()\n setCustomPushNotificationBuilder(): Promise { return; }\n\n @Cordova()\n clearAllNotification(): Promise { return; }\n\n @Cordova()\n clearNotificationById(id: number): Promise { return; }\n\n @Cordova()\n setLatestNotificationNum(num: number): Promise { return; }\n\n @Cordova()\n addLocalNotification(builderId: number, content: string, title: string, notificationId: number, broadcastTime: number, extras: string): Promise { return; }\n\n @Cordova()\n removeLocalNotification(notificationId: number): Promise { return; }\n\n @Cordova()\n reportNotificationOpened(msgId: number): Promise { return; }\n\n @Cordova()\n requestPermission(): Promise { return; }\n\n @Cordova()\n setSilenceTime(startHour: number, startMinute: number, endHour: number, endMinute: number): Promise { return; }\n\n @Cordova()\n setPushTime(weekdays: Array, startHour: number, endHour: number): Promise { return; }\n\n // Android API - end\nstatic decorators: DecoratorInvocation[] = [\n{ type: Injectable },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]} \ No newline at end of file diff --git a/jpush/index.metadata.json b/jpush/index.metadata.json new file mode 100644 index 0000000..340b7aa --- /dev/null +++ b/jpush/index.metadata.json @@ -0,0 +1 @@ +[{"__symbolic":"module","version":3,"metadata":{"JPush":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Plugin"},"arguments":[{"pluginName":"JPush","plugin":"jpush-phonegap-plugin","pluginRef":"jPush","repo":"https://github.com/jpush/jpush-phonegap-plugin","install":"ionic cordova plugin add jpush-phonegap-plugin --variable APP_KEY=your_app_key","installVariables":["APP_KEY"],"platforms":["Android","iOS"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"init":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"setDebugMode":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"getRegistrationID":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"stopPush":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"resumePush":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"isPushStopped":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"setTags":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"addTags":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"deleteTags":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"cleanTags":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"getAllTags":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"checkTagBindState":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"setAlias":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"deleteAlias":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"getAlias":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"getUserNotificationSettings":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"clearLocalNotifications":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"setBadge":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"resetBadge":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"setApplicationIconBadgeNumber":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"getApplicationIconBadgeNumber":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"addLocalNotificationForIOS":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"deleteLocalNotificationWithIdentifierKeyInIOS":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"addDismissActions":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"addNotificationActions":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"setLocation":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"startLogPageView":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"stopLogPageView":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"beginLogPageView":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"getConnectionState":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"setBasicPushNotificationBuilder":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"setCustomPushNotificationBuilder":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"clearAllNotification":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"clearNotificationById":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"setLatestNotificationNum":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"addLocalNotification":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"removeLocalNotification":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"reportNotificationOpened":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"requestPermission":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"setSilenceTime":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"setPushTime":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}]}}}},{"__symbolic":"module","version":1,"metadata":{"JPush":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Plugin"},"arguments":[{"pluginName":"JPush","plugin":"jpush-phonegap-plugin","pluginRef":"jPush","repo":"https://github.com/jpush/jpush-phonegap-plugin","install":"ionic cordova plugin add jpush-phonegap-plugin --variable APP_KEY=your_app_key","installVariables":["APP_KEY"],"platforms":["Android","iOS"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"init":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"setDebugMode":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"getRegistrationID":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"stopPush":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"resumePush":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"isPushStopped":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"setTags":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"addTags":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"deleteTags":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"cleanTags":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"getAllTags":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"checkTagBindState":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"setAlias":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"deleteAlias":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"getAlias":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"getUserNotificationSettings":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"clearLocalNotifications":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"setBadge":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"resetBadge":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"setApplicationIconBadgeNumber":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"getApplicationIconBadgeNumber":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"addLocalNotificationForIOS":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"deleteLocalNotificationWithIdentifierKeyInIOS":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"addDismissActions":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"addNotificationActions":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"setLocation":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"startLogPageView":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"stopLogPageView":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"beginLogPageView":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"getConnectionState":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"setBasicPushNotificationBuilder":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"setCustomPushNotificationBuilder":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"clearAllNotification":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"clearNotificationById":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"setLatestNotificationNum":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"addLocalNotification":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"removeLocalNotification":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"reportNotificationOpened":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"requestPermission":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"setSilenceTime":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"setPushTime":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}]}}}}] \ No newline at end of file diff --git a/jpush/package.json b/jpush/package.json new file mode 100644 index 0000000..879845e --- /dev/null +++ b/jpush/package.json @@ -0,0 +1,18 @@ +{ + "name": "@jiguang-ionic/jpush", + "version": "1.0.0", + "description": "JPush support for ionic-native", + "module": "index.js", + "typings": "index.d.ts", + "author": "hevin", + "license": "MIT", + "peerDependencies": { + "@ionic-native/core": "^4.2.0", + "@angular/core": "*", + "rxjs": "^5.0.1" + }, + "repository": { + "type": "git", + "url": "https://github.com/jpush/jpush-phonegap-plugin" + } +}