noty3
parent
663c90546c
commit
7226ff6da6
|
@ -44,8 +44,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[[NSNotificationCenter defaultCenter] postNotificationName:@"PHIZ_NOTIFICATION_LOCATION_AUTHORIZE_GET" object:NULL userInfo:NULL];
|
[[NSNotificationCenter defaultCenter]removeObserver:self];
|
||||||
|
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(handleNotification:) name:@"PHIZ_NOTIFICATION_LOCATION_AUTHORIZE_END" object:nil];
|
||||||
|
[[NSNotificationCenter defaultCenter] postNotificationName:@"PHIZ_NOTIFICATION_LOCATION_AUTHORIZE" object:NULL userInfo:@{@"type":@"chooseLocation"}];
|
||||||
|
|
||||||
[[FATClient sharedClient] fat_requestAppletAuthorize:FATAuthorizationTypeLocation appletId:self.appletInfo.appId complete:^(NSInteger status) {
|
[[FATClient sharedClient] fat_requestAppletAuthorize:FATAuthorizationTypeLocation appletId:self.appletInfo.appId complete:^(NSInteger status) {
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
[[FATExt_locationAuthManager shareInstance] fat_requestAppletLocationAuthorize:self.appletInfo isBackground:NO withComplete:^(BOOL status) {
|
[[FATExt_locationAuthManager shareInstance] fat_requestAppletLocationAuthorize:self.appletInfo isBackground:NO withComplete:^(BOOL status) {
|
||||||
|
@ -96,4 +98,8 @@
|
||||||
[topVC presentViewController:nav animated:YES completion:nil];
|
[topVC presentViewController:nav animated:YES completion:nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)handleNotification:(NSNotification *)notification {
|
||||||
|
NSLog(@"sean=========handleNotification");
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -53,9 +53,11 @@
|
||||||
|
|
||||||
self.success = success;
|
self.success = success;
|
||||||
self.failure = failure;
|
self.failure = failure;
|
||||||
// FATAppletInfo *appInfo = [[FATClient sharedClient] currentApplet];
|
[[NSNotificationCenter defaultCenter]removeObserver:self];
|
||||||
[[NSNotificationCenter defaultCenter] postNotificationName:@"PHIZ_NOTIFICATION_LOCATION_AUTHORIZE_GET" object:NULL userInfo:NULL];
|
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(handleNotification:) name:@"PHIZ_NOTIFICATION_LOCATION_AUTHORIZE_END" object:nil];
|
||||||
|
// FATAppletInfo *appInfo = [[FATClient sharedClient] currentApplet];
|
||||||
|
[[NSNotificationCenter defaultCenter] postNotificationName:@"PHIZ_NOTIFICATION_LOCATION_AUTHORIZE" object:NULL userInfo:@{@"type":@"gteLocation"}];
|
||||||
|
|
||||||
[[FATClient sharedClient] fat_requestAppletAuthorize:FATAuthorizationTypeLocation appletId:self.appletInfo.appId complete:^(NSInteger status) {
|
[[FATClient sharedClient] fat_requestAppletAuthorize:FATAuthorizationTypeLocation appletId:self.appletInfo.appId complete:^(NSInteger status) {
|
||||||
if (status == 0) {
|
if (status == 0) {
|
||||||
//定位功能可用
|
//定位功能可用
|
||||||
|
@ -141,4 +143,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
- (void)handleNotification:(NSNotification *)notification {
|
||||||
|
NSLog(@"sean=========handleNotification");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Reference in New Issue