Swrve / swrve-android-sdk

Swrve Android SDK
http://www.swrve.com
Other
10 stars 18 forks source link

SwrveSDK error - Couldn't obtain Firebase registration id #289

Closed pqtuan86 closed 5 years ago

pqtuan86 commented 5 years ago

Hi Swrve team,

While working with SwrveSDK, i get this error but i'm not sure what it really is:

E/SwrveSDK: Couldn't obtain the Firebase registration id for the device java.io.IOException: SERVICE_NOT_AVAILABLE at com.google.firebase.iid.zzr.zza(Unknown Source) at com.google.firebase.iid.zzr.zza(Unknown Source) at com.google.firebase.iid.zzu.then(Unknown Source) at com.google.android.gms.tasks.zzd.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) at java.lang.Thread.run(Thread.java:760)

I use SwrveSDK along with other provider, follow the sample "Multiple FCM Providers"

In my build.gradle: implementation "com.swrve.sdk.android:swrve-firebase:6.1.1"

In manifest file: <service android:name=".AppFirebaseMessagingService" android:exported="false">

Please advise on the above error. Thanks in advance.