Android GCM通知会耗尽电量

时间:2014-02-11 04:13:51

标签: android google-cloud-messaging urbanairship.com

我正在使用Urban Airship和GCM向我的应用发送推送通知,GCM设置需要处理清单中的唤醒锁定权限,

  <uses-permission android:name="android.permission.WAKE_LOCK" />
  application can keep the processor from sleeping when a message is received. Optional—    
  use only if the app wants to keep the device from sleeping

当我使用PowerTutor检查我的应用电池性能时,它会在我的应用上显示一个连续的过程。 这是WAKE_LOCK引起的问题。

0 个答案:

没有答案
相关问题