[英]android 6.0.1 (Galaxy Note 5) Push notification via FCM, priority high, not waking up from doze mode
After searching for an answer for few weeks now, came across countless dissections – no one offered a solution or even identified the problem (or change) 在寻找几个星期的答案后,遇到了无数的解剖 - 没有人提供解决方案,甚至没有找到问题(或改变)
https://github.com/firebase/quickstart-android/issues/89 https://github.com/firebase/quickstart-android/issues/89
https://github.com/firebase/quickstart-android/issues/100 https://github.com/firebase/quickstart-android/issues/100
https://github.com/firebase/quickstart-android/issues/88 https://github.com/firebase/quickstart-android/issues/88
https://code.google.com/p/android/issues/detail?id=219084 https://code.google.com/p/android/issues/detail?id=219084
Push notifications are delayed in Android Doze mode 在Android Doze模式下推送通知会延迟
We're developing a calling app, We need to send a push notification to wake up the target device, load our app to the foreground (activity intent, disabling screen lock), start ringing and waiting for user action. 我们正在开发一个调用应用程序,我们需要发送推送通知来唤醒目标设备,将我们的应用程序加载到前台(活动意图,禁用屏幕锁定),开始响铃并等待用户操作。
Galaxy Note 5 running Android 6.0.1 does not waking up after entering idle/Doze mode. 进入空闲/打盹模式后,运行Android 6.0.1的Galaxy Note 5无法唤醒。
We're sending only “data” json object/ tag (no “notification” object/ tag) 我们只发送“数据”json对象/标签(没有“通知”对象/标签)
As i can see it's a repetitive issue, i followed all answers no success: 我可以看到它是一个重复的问题,我跟着所有答案都没有成功:
Did anyone experience this problem with devices running android 6.0.1? 有没有人遇到运行android 6.0.1的设备的这个问题?
Is there a definite answer to this issue? 这个问题有明确的答案吗? or is it a samsung bug?
还是三星虫? (i posted the question to samsung support as well)
(我也向三星支持发布了这个问题)
Thanks for all helpers 感谢所有帮助者
Details: Android studio: 2.1.2 详情:Android studio:2.1.2
top gradle: 顶级gradle:
dependencies {
classpath 'com.google.gms:google-services:3.0.0'
}
app gradle: app gradle:
compile "com.google.firebase:firebase-messaging:9.4.0"
apply plugin: 'com.google.gms.google-services'
targetSdkVersion 23
app manifest: 应用清单:
<service android:name="com.example.mypackage.GcmIntentService" >
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
Server: 服务器:
$fields = array(
'registration_ids' => $registrationIDs,
'priority' => ‘high’,
'collapse_key' => 'Updates available',
'data' => array(
'Alert' => $message,
'Type' => $type ,
'Title' => $title ,
),
'time_to_live' => 0
);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.