-
26 votesanswersviews
Fused Location Provider意外行为
这是我注册我的应用程序以接收位置更新的方式: mLocationRequest = LocationRequest.create(); mLocationRequest.setInterval(Consts.ONE_MINUTE * 10); mLocationRequest.setPriority(LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY)... -
1 votesanswersviews
位置服务不在WatchKit调用的后台工作
我的Apple Watch应用程序需要一些数据并从相应的iPhone应用程序请求它 . 要满足请求,iPhone应用程序需要用户位置 . 在使用真正的Apple Watch接收和测试后,我发现我的iPhone应用程序在后台运行时没有收到位置更新 . 如果iPhone应用程序在前台处于活动状态,则可以正常运行 . 使用模拟器,它在两种情况下都有效 . 在这两种情况下(活动和后台),WatchKit扩...