TobiasBuchholz / Plugin.Firebase

Wrapper around the native Android and iOS Firebase Xamarin SDKs
MIT License
211 stars 49 forks source link

GetFcmTokenAsync() hangs forever #278

Closed mrnams closed 3 months ago

mrnams commented 6 months ago

Hi, when I call GetFcmTokenAsync() programs hangs forever and never get fcm token

TobiasBuchholz commented 6 months ago

Hi, could you please provide a sample project that demonstrates this issue? Thanks!

mrnams commented 6 months ago

I tried to share minimal code with you, but unfortunately I could not succeeded, my project is big one and its hard for me to minimize it, and due to privacy reason cant share it complete, however I share steps to reproduce it. GetFcmTokenAsync() hangs forever when called in view models/Models and only works when called view (code behind) , so I get FCM token in view on button click and use it to save in database.