Adjustment documents structure

This commit is contained in:
zhangqinghe
2015-04-14 09:58:44 +08:00
parent fbd98732c8
commit cbca41a513
8 changed files with 758 additions and 834 deletions
+18 -2
View File
@@ -34,9 +34,11 @@ static NSDictionary *_luanchOptions=nil;
name:kJPushPluginReceiveNotification
object:nil];
if (!_luanchOptions) {
return;
}
NSDictionary *userInfo = [_luanchOptions
valueForKey:UIApplicationLaunchOptionsRemoteNotificationKey];
valueForKey:UIApplicationLaunchOptionsRemoteNotificationKey];
if (_luanchOptions && [userInfo count] >0) {
NSError *error;
NSData *jsonData = [NSJSONSerialization dataWithJSONObject:userInfo options:0 error:&error];
@@ -49,10 +51,24 @@ static NSDictionary *_luanchOptions=nil;
}
}
}
return self;
}
-(void)init:(CDVInvokedUrlCommand*)command{
if (!_luanchOptions) {
NSLog("must set [JPushPlugin setLaunchOptions:launchOptions] in AppDelegate.m"):
return;
}
[APService registerForRemoteNotificationTypes:(UIUserNotificationTypeBadge |
UIUserNotificationTypeSound |
UIUserNotificationTypeAlert)
categories:nil];
[APService setupWithOption:_luanchOptions];
}
-(void)setTagsWithAlias:(CDVInvokedUrlCommand*)command{
NSArray *arguments=command.arguments;