noty
parent
78e372b039
commit
4b86964cbd
|
@ -54,6 +54,8 @@
|
|||
self.success = success;
|
||||
self.failure = failure;
|
||||
// FATAppletInfo *appInfo = [[FATClient sharedClient] currentApplet];
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:@"PHIZ_NOTIFICATION_LOCATION_AUTHORIZE_GET" object:NULL userInfo:NULL];
|
||||
|
||||
[[FATClient sharedClient] fat_requestAppletAuthorize:FATAuthorizationTypeLocation appletId:self.appletInfo.appId complete:^(NSInteger status) {
|
||||
if (status == 0) {
|
||||
//定位功能可用
|
||||
|
|
|
@ -79,8 +79,7 @@ static MopPlugin *_instance;
|
|||
|
||||
|
||||
- (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
|
||||
|
||||
if ([@"getPlatformVersion" isEqualToString:call.method]) {
|
||||
if ([@"getPlatformVersion" isEqualToString:call.method]) {
|
||||
result([@"iOS " stringByAppendingString:[[UIDevice currentDevice] systemVersion]]);
|
||||
}
|
||||
else if ([@"getAppletInfo" isEqualToString:call.method]) {
|
||||
|
|
Loading…
Reference in New Issue