onMessageReceived isn't always called
@kroikie がすでに取り組んでいます。
2017年11月10日 から。
評価
この issue はまだ評価されていません。
説明
- Android device: Multiple devices
- Android OS version: Multiple OS versions
- Google Play Services version:
- Firebase/Play Services SDK version: 11.4.2
The onMessageReceived method is only called for about 2/3 of the users. It's not because it's in the background because it's a data payload sent from Microsoft Azure, and the method is called for me and the notification displayed when I have the app closed. I know they're reaching the device because I checked the Play Console and they're marked as 'Acknowledged'.
Steps to reproduce:
- Follow the quickstart example and log the onMessageReceived call
- Send a message with a data payload
- See how many of your push notifications are logged
Observed Results:
Only about 2/3 of the notifications end up with a call to onMessageReceived.
Expected Results:
I expected all of the notifications to reach onMessageReceived.
Relevant Code:
<service
android:name=".push.MyFirebaseMessagingService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
</intent-filter>
</service>
public class MyFirebaseMessagingService extends FirebaseMessagingService {
...
@Override
public void onMessageReceived(RemoteMessage remoteMessage) {
...
}
- 主要言語
- Kotlin
- スター
- 9.3k
- フォーク
- 7.4k
- 平均マージ
- 7日 9時間
- マージ済み PR(30日)
- 6
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
firebase/quickstart-android のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
firebase/quickstart-android#2756 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
firebase/quickstart-android#2754 · コメント 5 件 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
firebase/quickstart-android#2668 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
firebase/quickstart-android#2663 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
firebase/quickstart-android#1669 · コメント 3 件 ·
firebase/quickstart-android の issue をすべて見る
似ている issue
-
android:plan main:plan packages:learn
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
afk-ok area:data-quality importer size:S
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
enorm-labs/event-junkie#5278 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
LeanBitLab/LeanType#864 ·
メンテナーはふだん 1 日以内に返信
-
Comment NEW RI+MC+RR
難易度 1/5 1〜3時間 初心者へのやさしさ 70/100