每个支持GCM的应用都应该有“android.permission.WAKE_LOCK”

每个支持GCM的应用都应该有“android.permission.WAKE_LOCK”,第1张

概述我见过的所有具有GCM支持的应用都有 android.permission.WAKE_LOCK 我想知道这背后的原因. 如果支持GCM的应用程序没有此权限,会发生什么? 根据Google文档,它是可选的: The android.permission.WAKE_LOCK permission so the application can keep the processor from sleepi 我见过的所有具有GCM支持的应用都有

androID.permission.WAKE_LOCK

我想知道这背后的原因.

如果支持GCM的应用程序没有此权限,会发生什么?

解决方法 根据Google文档,它是可选的:

The androID.permission.WAKE_LOCK permission so the 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.

资料来源:https://developer.android.com/google/gcm/client.html

总结

以上是内存溢出为你收集整理的每个支持GCM的应用都应该有“android.permission.WAKE_LOCK”全部内容,希望文章能够帮你解决每个支持GCM的应用都应该有“android.permission.WAKE_LOCK”所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1125462.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-30
下一篇2022-05-30

发表评论

登录后才能评论

评论列表(0条)

    保存