【发布时间】:2023-03-21 01:22:01
【问题描述】:
我正在使用此示例接收位置更新:
https://github.com/googlesamples/android-play-location/tree/master/LocationUpdatesPendingIntent
在我使用 Google API 客户端的连接实例注册位置请求后,它会接收位置。 我的问题是如何在设备重启后重新注册 Google Api Client?有人说Android O会限制后台服务,不推荐一个服务?
我发现此链接很有用,但仍然不知道操作系统的实际行为以及将我的应用程序视为前台还是后台?
https://developer.android.com/preview/features/background.html#services
【问题讨论】:
标签: location google-play-services android-7.0-nougat android-8.0-oreo