iOS Question Firebase messaging: Token empty with App Store version

F.Campanella

Member
Licensed User
Longtime User
Hi,
I've this problem:

I've an application with firebase notification.
When I use this application with development certificates the TOKEN is correctly retrieved and the push message versus one device work correctly.

When I use this application with production certificates the TOKEN is empty and the push message work with topics only

Can you help me?!?!?!? :(

P.S. I use this code for retrieve 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

These are the certificates and provision file (distribution)
B4X:
#CertificateFile: ios_distribution.cer
#ProvisionFile: ILCDistribution.mobileprovision

These are the certificates and provision file (development)
B4X:
#CertificateFile: ios_development.cer
#ProvisionFile: ILCDevelopment.mobileprovision

the ILCDistribution is joined with same App ID than ILCDevelopment

P.S. I have this row of code too
B4X:
#Entitlement: <key>aps-environment</key><string>production</string>
 
Last edited:
Top