mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2025-03-17 06:21:05 +08:00
iOS - update
1.拼写错误
This commit is contained in:
parent
851ff1f23b
commit
e4500dd513
@ -16,7 +16,7 @@ static NSString *const JP_APP_CHANNEL = @"CHANNEL";
|
|||||||
static NSString *const JP_APP_ISPRODUCTION = @"IsProduction";
|
static NSString *const JP_APP_ISPRODUCTION = @"IsProduction";
|
||||||
static NSString *const JP_APP_ISIDFA = @"IsIDFA";
|
static NSString *const JP_APP_ISIDFA = @"IsIDFA";
|
||||||
static NSString *const JPushConfigFileName = @"PushConfig";
|
static NSString *const JPushConfigFileName = @"PushConfig";
|
||||||
static NSDictionary *_luanchOptions = nil;
|
static NSDictionary *_launchOptions = nil;
|
||||||
|
|
||||||
@implementation JPushPlugin
|
@implementation JPushPlugin
|
||||||
|
|
||||||
@ -92,8 +92,8 @@ static NSDictionary *_luanchOptions = nil;
|
|||||||
name:kJPushPluginReceiveNotification
|
name:kJPushPluginReceiveNotification
|
||||||
object:nil];
|
object:nil];
|
||||||
|
|
||||||
if (_luanchOptions) {
|
if (_launchOptions) {
|
||||||
NSDictionary *userInfo = [_luanchOptions
|
NSDictionary *userInfo = [_launchOptions
|
||||||
valueForKey:UIApplicationLaunchOptionsRemoteNotificationKey];
|
valueForKey:UIApplicationLaunchOptionsRemoteNotificationKey];
|
||||||
if ([userInfo count] >0) {
|
if ([userInfo count] >0) {
|
||||||
NSError *error;
|
NSError *error;
|
||||||
@ -261,7 +261,7 @@ static NSDictionary *_luanchOptions = nil;
|
|||||||
|
|
||||||
#pragma mark- 内部方法
|
#pragma mark- 内部方法
|
||||||
+(void)setLaunchOptions:(NSDictionary *)theLaunchOptions{
|
+(void)setLaunchOptions:(NSDictionary *)theLaunchOptions{
|
||||||
_luanchOptions = theLaunchOptions;
|
_launchOptions = theLaunchOptions;
|
||||||
|
|
||||||
[JPUSHService setDebugMode];
|
[JPUSHService setDebugMode];
|
||||||
|
|
||||||
@ -289,7 +289,7 @@ static NSDictionary *_luanchOptions = nil;
|
|||||||
if(isIDFA){
|
if(isIDFA){
|
||||||
advertisingId = [[[ASIdentifierManager sharedManager] advertisingIdentifier] UUIDString];
|
advertisingId = [[[ASIdentifierManager sharedManager] advertisingIdentifier] UUIDString];
|
||||||
}
|
}
|
||||||
[JPUSHService setupWithOption:_luanchOptions
|
[JPUSHService setupWithOption:_launchOptions
|
||||||
appKey:appkey
|
appKey:appkey
|
||||||
channel:channel
|
channel:channel
|
||||||
apsForProduction:[isProduction boolValue]
|
apsForProduction:[isProduction boolValue]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user