1. 程式人生 > >iOS 極光推送設定別名

iOS 極光推送設定別名

//登入 

 [JPUSHServicesetTags:nilalias:userNmae callbackSelector:@selector(tagsAliasCallback:tags:alias:) object:self];

- (void)tagsAliasCallback:(int)iResCode tags:(NSSet*)tags alias:(NSString*)alias {

NSLog(@"rescode: %d, \ntags: %@, \nalias: %@\n", iResCode, tags , alias);

}

//退出登入

 [JPUSHServicesetTags:nilalias

:@"" callbackSelector:@selector(tagsAliasCallback:tags:alias:) object:self];

- (void)tagsAliasCallback:(int)iResCode tags:(NSSet*)tags alias:(NSString*)alias {

NSLog(@"rescode: %d, \ntags: %@, \nalias: %@\n", iResCode, tags , alias);

}