-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
android 定位没有问题,iOS定位失败获取不到位置信息 #42
Comments
用ios调试,看看- (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result 里面的else if([@"setApiKey" isEqualToString:method]) 有没有触发 |
把高德的key写在iOS工程里的AppDelegate就可以获取位置信息 |
`
` 我最后处理是在 |
@hqwlkj 解决吗 我也遇到了问题 |
@corporale |
@jiangyh1024 差不多,我是红框的那句放在前面 |
@corporale 红框那个就这么些就行? 不需要import 什么东西么 |
@jiangyh1024 是的,我加了这句代码就可以获取到定位信息了,如果报错就 |
@corporale OK 谢了 明天上班我试试 |
@corporale 是不是还要加上 NSLocationAlwaysAndWhenInUseUsageDescription |
@corporale 行了 确实要加上最后那个 |
@jiangyh1024 好的👌 |
iOS环境下完全没有执行到监听,android环境没有问题。是不是我哪里少了配置。
采用直接获取定位也是获取不到位置信息的
The text was updated successfully, but these errors were encountered: