noty3
parent
663c90546c
commit
7226ff6da6
|
@ -44,7 +44,9 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[[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) {
|
||||||
|
@ -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,8 +53,10 @@
|
||||||
|
|
||||||
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