chore: release jpush-phonegap-plugin v1.0

This commit is contained in:
huangshuni
2026-05-14 17:26:15 +08:00
parent ac15c5afc3
commit cf4d5de33c
5 changed files with 58 additions and 6 deletions
+10 -3
View File
@@ -546,9 +546,16 @@ JPushPlugin.prototype.setAuth = function(isAuth){
* @param isEnable boolean 是否允许长连接
*/
JPushPlugin.prototype.setBackgroundEnable = function(isEnable) {
if (this.isPlatformIOS()) {
this.callNative("setBackgroundEnable", [isEnable], null);
}
this.callNative("setBackgroundEnable", [isEnable], null);
};
/**
* Android VOIP 消息回调(由 Native 调用,触发 jpush.receiveVoipMessage 事件)
*/
JPushPlugin.prototype.receiveVoipMessageInAndroidCallback = function(data) {
data = JSON.stringify(data);
this.voipMessage = JSON.parse(data);
cordova.fireDocumentEvent("jpush.receiveVoipMessage", this.voipMessage);
};
if (!window.plugins) {