mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2026-07-03 00:00:03 +08:00
修正iOS 接口 isPushStopped 的返回值,使stop 返回 1,非stop 返回 0
This commit is contained in:
@@ -18,7 +18,7 @@ public class MyReceiver extends BroadcastReceiver {
|
||||
|
||||
if (JPushInterface.ACTION_REGISTRATION_ID.equals(intent.getAction())) {
|
||||
|
||||
}else if (JPushInterface.ACTION_UNREGISTER.equals(intent.getAction())){
|
||||
// }else if (JPushInterface.ACTION_UNREGISTER.equals(intent.getAction())){
|
||||
|
||||
} else if (JPushInterface.ACTION_MESSAGE_RECEIVED.equals(intent.getAction())) {
|
||||
handlingReceivedMessage(intent);
|
||||
|
||||
@@ -109,9 +109,9 @@ static NSDictionary *_luanchOptions=nil;
|
||||
|
||||
NSNumber *result;
|
||||
if ([[UIApplication sharedApplication] isRegisteredForRemoteNotifications ]) {
|
||||
result=@(1);
|
||||
}else{
|
||||
result=@(0);
|
||||
}else{
|
||||
result=@(1);
|
||||
}
|
||||
CDVPluginResult * pushResult=[self pluginResultForValue:result];
|
||||
if (pushResult) {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//
|
||||
// Created by JPush on 12-8-15.
|
||||
// Copyright (c) 2012年 HXHG. All rights reserved.
|
||||
// Version: 1.8.3
|
||||
// Version: 1.8.8
|
||||
|
||||
@class CLRegion;
|
||||
@class UILocalNotification;
|
||||
|
||||
Reference in New Issue
Block a user