ExpoPush Notification not working in android standalone

Please provide the following:

  1. SDK Version: 44.0.0
  2. Platforms(Android/iOS/web/all): Android
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

Notification work fine in ExpoGo android but not working on android standalone app.
The notification process is stopped at
“Notifications.getExpoPushTokenAsync()” with no reply.

The log in android logcat showed as


E/AuthPII: [GoogleAccountDataServiceImpl] getToken() -> BAD_AUTHENTICATION. Account: Account {name=mmmmmmm@gmail.com, type=com.google}, App: com.android.vending, Service: oauth2:https://www.googleapis.com/auth/googleplay
    qvo: Long live credential not available.
        at gnf.a(:com.google.android.gms@213916037@21.39.16 (120400-402663742):8)
        at com.google.android.gms.ads.internal.mediation.client.rtb.h.Q(:com.google.android.gms@213916037@21.39.16 (120400-402663742):1)
        at gmc.m(:com.google.android.gms@213916037@21.39.16 (120400-402663742):111)
        at dne.m(:com.google.android.gms@213916037@21.39.16 (120400-402663742):32)
        at dne.h(:com.google.android.gms@213916037@21.39.16 (120400-402663742):42)
        at gkt.getAuthToken(:com.google.android.gms@213916037@21.39.16 (120400-402663742):25)
        at android.accounts.AbstractAccountAuthenticator$Transport.getAuthToken(AbstractAccountAuthenticator.java:246)
        at android.accounts.IAccountAuthenticator$Stub.onTransact(IAccountAuthenticator.java:282)
        at android.os.Binder.transact(Binder.java:949)
        at dpr.onTransact(:com.google.android.gms@213916037@21.39.16 (120400-402663742):2)
        at android.os.Binder.transact(Binder.java:949)
        at xwq.onTransact(:com.google.android.gms@213916037@21.39.16 (120400-402663742):17)
        at android.os.Binder.execTransactInternal(Binder.java:1056)
        at android.os.Binder.execTransact(Binder.java:1029)
2022-03-24 14:54:13.339 1609-3394/? E/AuthPII: Message is Long live credential not available.
    qvo: Long live credential not available.
        at gnf.a(:com.google.android.gms@213916037@21.39.16 (120400-402663742):8)
        at com.google.android.gms.ads.internal.mediation.client.rtb.h.Q(:com.google.android.gms@213916037@21.39.16 (120400-402663742):1)
        at gmc.m(:com.google.android.gms@213916037@21.39.16 (120400-402663742):111)
        at dne.m(:com.google.android.gms@213916037@21.39.16 (120400-402663742):32)
        at dne.h(:com.google.android.gms@213916037@21.39.16 (120400-402663742):42)
        at gkt.getAuthToken(:com.google.android.gms@213916037@21.39.16 (120400-402663742):25)
        at android.accounts.AbstractAccountAuthenticator$Transport.getAuthToken(AbstractAccountAuthenticator.java:246)
        at android.accounts.IAccountAuthenticator$Stub.onTransact(IAccountAuthenticator.java:282)
        at android.os.Binder.transact(Binder.java:949)
        at dpr.onTransact(:com.google.android.gms@213916037@21.39.16 (120400-402663742):2)
        at android.os.Binder.transact(Binder.java:949)
        at xwq.onTransact(:com.google.android.gms@213916037@21.39.16 (120400-402663742):17)
        at android.os.Binder.execTransactInternal(Binder.java:1056)
        at android.os.Binder.execTransact(Binder.java:1029)

optional info

  • (app builded with ‘eas build’)
  • (in app.json
    “googleServicesFile”: “./android/app/google-services.json”,
    “config”:{
    “googleSignIn”:{
    “apiKey”: “my api key”
    }
    },
    “useNextNotificationsApi”: true)
  • (android build.gradle google-services version 4.3.10 )
  • (android app build.gradle
    implementation platform(“com.google.firebase:firebase-bom:29.2.1”)
    implementation “com.google.firebase:firebase-analytics”
    implementation “com.google.firebase:firebase-messaging:23.0.2” )
  • (already done expo push:android:upload --api-key too)
  • the error from getExpoPushTokenAsync say
"[Error: Encountered an exception while calling native method: Exception occurred while executing exported method getDevicePushTokenAsync on module ExpoPushTokenManager: Failed resolution of: Lcom/google/firebase/iid/FirebaseInstanceId;]"

Hey @matanume, did you pass the experienceId as an argument in your actual code? For apps built with EAS, this is required. Please read about it here

@adamjnav just pass it. still not working.

SOLVED :
The getExpoPushTokenAsync error hint that I should
implementation “com.google.firebase:firebase-iid:…”
in android app build.gradle

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.