Attempt to invoke virtual method com.google.firebase.iid.FirebaseInstanceId.getInstanceId()' on a null object reference

前端 未结 3 1536
走了就别回头了
走了就别回头了 2020-12-17 23:38

I am to using firebase-messaging library and trying to fetch the token using below method on app launch.

FirebaseInstanceId.getInstance().getInstance         


        
3条回答
  •  一个人的身影
    2020-12-17 23:55

    You need add the below packages,

    1. Xamarin.Firebase.Lid
    2. Xamarin.Firebase.Messaging
    3. Xamarin.Firebase.Common

    Optional - Xamarin.Firebase.Analytics (For analytics)

提交回复
热议问题