mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2025-02-22 05:53:04 +08:00
修正iOS 接口 isPushStopped 的返回值,使stop 返回 1,非stop 返回 0
This commit is contained in:
parent
32d3ecc917
commit
c2818fb193
10
plugin.xml
10
plugin.xml
@ -29,7 +29,7 @@
|
|||||||
<source-file src="src/ios/Plugins/JPushPlugin.m"/>
|
<source-file src="src/ios/Plugins/JPushPlugin.m"/>
|
||||||
|
|
||||||
<header-file src="src/ios/lib/APService.h" />
|
<header-file src="src/ios/lib/APService.h" />
|
||||||
<source-file src="src/ios/lib/libPushSDK-1.8.3.a" framework="true" />
|
<source-file src="src/ios/lib/libPushSDK-1.8.8.a" framework="true" />
|
||||||
<header-file src="src/ios/Plugins/AppDelegate+JPush.h"/>
|
<header-file src="src/ios/Plugins/AppDelegate+JPush.h"/>
|
||||||
<source-file src="src/ios/Plugins/AppDelegate+JPush.m"/>
|
<source-file src="src/ios/Plugins/AppDelegate+JPush.m"/>
|
||||||
<resource-file src="src/ios/PushConfig.plist" />
|
<resource-file src="src/ios/PushConfig.plist" />
|
||||||
@ -154,10 +154,10 @@
|
|||||||
<meta-data android:name="JPUSH_CHANNEL" android:value="developer-default"/>
|
<meta-data android:name="JPUSH_CHANNEL" android:value="developer-default"/>
|
||||||
<meta-data android:name="JPUSH_APPKEY" android:value="your appkey"/>
|
<meta-data android:name="JPUSH_APPKEY" android:value="your appkey"/>
|
||||||
</config-file>
|
</config-file>
|
||||||
<source-file src="src/android/jpush-sdk-release1.7.5.jar" target-dir="libs"/>
|
<source-file src="src/android/jpush-android-2.0.5.jar" target-dir="libs"/>
|
||||||
<source-file src="src/android/armeabi/libjpush175.so" target-dir="libs/armeabi"/>
|
<source-file src="src/android/armeabi/libjpush205.so" target-dir="libs/armeabi"/>
|
||||||
<source-file src="src/android/armeabi-v7a/libjpush175.so" target-dir="libs/armeabi-v7a"/>
|
<source-file src="src/android/armeabi-v7a/libjpush205.so" target-dir="libs/armeabi-v7a"/>
|
||||||
<source-file src="src/android/arm64-v8a/libjpush175.so" target-dir="libs/arm64-v8a"/>
|
<source-file src="src/android/arm64-v8a/libjpush205.so" target-dir="libs/arm64-v8a"/>
|
||||||
|
|
||||||
<source-file src="src/android/JPushPlugin.java" target-dir="src/cn/jpush/phonegap"/>
|
<source-file src="src/android/JPushPlugin.java" target-dir="src/cn/jpush/phonegap"/>
|
||||||
<source-file src="src/android/MyReceiver.java" target-dir="src/cn/jpush/phonegap"/>
|
<source-file src="src/android/MyReceiver.java" target-dir="src/cn/jpush/phonegap"/>
|
||||||
|
@ -18,7 +18,7 @@ public class MyReceiver extends BroadcastReceiver {
|
|||||||
|
|
||||||
if (JPushInterface.ACTION_REGISTRATION_ID.equals(intent.getAction())) {
|
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())) {
|
} else if (JPushInterface.ACTION_MESSAGE_RECEIVED.equals(intent.getAction())) {
|
||||||
handlingReceivedMessage(intent);
|
handlingReceivedMessage(intent);
|
||||||
|
@ -109,9 +109,9 @@ static NSDictionary *_luanchOptions=nil;
|
|||||||
|
|
||||||
NSNumber *result;
|
NSNumber *result;
|
||||||
if ([[UIApplication sharedApplication] isRegisteredForRemoteNotifications ]) {
|
if ([[UIApplication sharedApplication] isRegisteredForRemoteNotifications ]) {
|
||||||
result=@(1);
|
|
||||||
}else{
|
|
||||||
result=@(0);
|
result=@(0);
|
||||||
|
}else{
|
||||||
|
result=@(1);
|
||||||
}
|
}
|
||||||
CDVPluginResult * pushResult=[self pluginResultForValue:result];
|
CDVPluginResult * pushResult=[self pluginResultForValue:result];
|
||||||
if (pushResult) {
|
if (pushResult) {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
//
|
//
|
||||||
// Created by JPush on 12-8-15.
|
// Created by JPush on 12-8-15.
|
||||||
// Copyright (c) 2012年 HXHG. All rights reserved.
|
// Copyright (c) 2012年 HXHG. All rights reserved.
|
||||||
// Version: 1.8.3
|
// Version: 1.8.8
|
||||||
|
|
||||||
@class CLRegion;
|
@class CLRegion;
|
||||||
@class UILocalNotification;
|
@class UILocalNotification;
|
||||||
|
Loading…
Reference in New Issue
Block a user