iOS Question Firebase GetToken function return empty value

Ali Alsaedi

Member
Licensed User
Longtime User
I use This Funstion For Get Token

B4X:
Private Sub GetToken As String
    Dim no As NativeObject
    Dim token As NativeObject = no.Initialize("FIRInstanceID").RunMethod("instanceID", Null).RunMethod("token", Null)
   
    If token.IsInitialized Then Return token.AsString Else Return ""
End Sub

but always return empty value

i do not know problem from me or google firebase service

topic not display in firebase consol

notification not send to device or simulator

several times delete and create certificate and provision profile

but dont not work yet

I got confused

please help me
 
Top