F F.Campanella Member Licensed User Longtime User May 13, 2017 #1 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 Code: Copy 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) Code: Copy #CertificateFile: ios_distribution.cer #ProvisionFile: ILCDistribution.mobileprovision These are the certificates and provision file (development) Code: Copy #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 Code: Copy #Entitlement: <key>aps-environment</key><string>production</string> Last edited: May 13, 2017
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 Code: Copy 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) Code: Copy #CertificateFile: ios_distribution.cer #ProvisionFile: ILCDistribution.mobileprovision These are the certificates and provision file (development) Code: Copy #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 Code: Copy #Entitlement: <key>aps-environment</key><string>production</string>
Erel B4X founder Staff member Licensed User Longtime User May 14, 2017 #2 Never use development certificates. Only production. Ad hoc during development and store for the store build. Start with the ad hoc certificate and run your app in debug mode. Are there any errors or warnings in the logs? Upvote 0
Never use development certificates. Only production. Ad hoc during development and store for the store build. Start with the ad hoc certificate and run your app in debug mode. Are there any errors or warnings in the logs?