FCM can't run well in Android Kitkat and JellyBean (not sure about ICS)

Ouverte
#759 8 commentaires 0 réactions 1 personne assignée Voir sur GitHub

@kroikie y travaille déjà.

Depuis le 4/12/2018.

Évaluation

Cette issue n'a pas encore été évaluée.

Description

api: messaging
My environment
  • Android device: Various Device (emulator, some old android device that i borrow from friend i forgot to write down their device name, its come from lenovo)
  • Android OS version: Jelly Beans and Kitkat
  • Google Play Services version: already try to the most updated
  • Firebase/Play Services SDK version: the most updated (4.2.0 for services, 16.0.6 for firebase core, 17.3.4 for firebase messaging)
My problem description:

I trigger a push notification in onMessageReceived, and the problem is the push notification on Android Kitkat and Below. When im trying to debug the phone, an error appear as "E/FirebaseInstanceId: Token retrieval failed: PHONE_REGISTRATION_ERROR". This is not happend in other os and device, they all run without problem.

Steps to reproduce:
  1. I think the description already clear
Observed Results:
  • the onMessageReceived doesn't triggered/run when there is a new message incoming and when i try to debug in Android Studio the E/FirebaseInstanceId: Token retrieval failed: PHONE_REGISTRATION_ERROR appear.
Expected Results:
  • For FCM running in Android kitkat and below
Relevant Code:

Sorry, i doesn't know how to show the code, since its a privacy from my workplace. Maybe if you tell me which part of the code is important then i can try to show it.

Langage dominant
Kotlin
Étoiles
9.3k
Forks
7.4k
Merge moyen
7 j 9 h
PR mergées (30 j)
6

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de firebase/quickstart-android

Toutes les issues de firebase/quickstart-android

Issues similaires

Plus d'issues Kotlin

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.