播放服务重新启动后,位置更新会发生什么

时间:2017-02-09 08:50:46

标签: android google-play-services fusedlocationproviderapi google-location-services

我有一个IntentService,由FusedLocationApi每分钟调用一次来处理位置数据。

private void startLocationUpdates() {
        PendingIntent pendingIntent = getPendingIntent();
        LocationServices.FusedLocationApi.requestLocationUpdates(googleApiClient, locationRequest, pendingIntent);
    }

如果Play服务从崩溃中更新或恢复,我的IntentService会继续以上述间隔调用吗?或者我需要重新注册吗?

根据我的观察,在从崩溃恢复后的Nexus 6P上,游戏服务继续调用我的IntentService,但不是在华为Honor Bee上。

在我的生产应用程序中,感谢Firebase事件,我发现在设备内存不足(调用onTrimMemory()后)不再调用我的IntentService

0 个答案:

没有答案
相关问题