mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2026-05-27 00:00:12 +08:00
chore: release jpush-phonegap-plugin v1.0
This commit is contained in:
+10
-3
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user