首页 > 解决方案 > Location sensor not giving location on ios when enabled on Delphi

问题描述

I'm developing an app for ios and android on Delphi. I have a location sensor that is active. It works without problems on android but on ios it does not work. The program never goes into onlocationchanged event of the sensor location so I cannot get the location of the device. Do I forget anything about uses or something to make the sensor work on ios?

Thank you.

标签: iosdelphilocation

解决方案


谢谢你,戴夫!我必须访问质量门户更多...

解决方案是:

可以通过将单元复制到项目文件夹并注释掉第 151 行(locationManagerDidUpdateLocations 的 MethodName 属性)来解决此问题


推荐阅读