简体   繁体   English

android 6.0.1(Galaxy Note 5)通过FCM推送通知,优先级高,不从打盹模式唤醒

[英]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无法唤醒。

  • when the device is not in idle mode, the push arrive successfully. 当设备未处于空闲模式时,推送成功到达。
  • On all other devices I have it works fine. 在所有其他设备上,我有它工作正常。 (also running android 6.0.1- not samsung) (还运行android 6.0.1-而不是三星)

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: 我可以看到它是一个重复的问题,我跟着所有答案都没有成功:

  1. Did anyone experience this problem with devices running android 6.0.1? 有没有人遇到运行android 6.0.1的设备的这个问题?

  2. 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
        );

The problem is resolved. 问题得到解决。 I changed nothing. 我一无所获。 But the google-service-play apk installed on the device was automatically updated on August 23rd. 但是设备上安装的google-service-play apk已于8月23日自动更新。 ever since the app wakes up at any time. 自应用程序随时唤醒以来。 I guess I need to thank google. 我想我需要感谢谷歌。

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 即使使用高优先级消息,Android 应用程序也不会从打盹模式中唤醒 - Android app not waking up from doze mode even with High priority Message 具有高优先级的 Firebase 消息不会从 Doze android 6+ 唤醒设备 - Firebase message with high priority not waking device from Doze android 6+ 我是否需要FCM高优先级消息才能以打ze模式将更改推送到Firestore侦听器? - Do I need FCM high priority messages to push changes to Firestore listeners in Doze mode? 为什么 Android 不退出打盹模式,尽管 FCM 中消息的优先级很高? - Why Android does not exit DOZE mode, despite the high priority of the message in FCM? FCM 正常优先级消息可以将设备从打盹模式中唤醒吗? - Can FCM normal priority message wake up device from doze mode? Ble beacon Android Oreo和P无法从打ze模式唤醒应用程序 - Ble beacon Android Oreo and P not waking app from doze mode Android DOZE模式GCM优先级 - Android DOZE mode GCM Priority Android PubNub 未通过 FCM 接收推送通知 - Android PubNub not receiving push notification via FCM Phonegap / Cordova 推送通知未唤醒屏幕 - Phonegap / Cordova Push Notification not waking up screen 对主题具有高优先级的 FCM 推送带有延迟 - FCM push with high priority to topic comes with delay
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM