iOS Question Firebase problem

Nizze

Active Member
Licensed User
Longtime User
Hi

Im trying to get Erels Firemabase example ( As in the his guide )
https://www.b4x.com/android/forum/t...ions-push-messages-server-not-required.68645/

I can compile the code in Erels Hosted Hosted builder .
i have also tested with my own Local Builder.

The example copiles without error.

If i run the the app in the Simulator and on my LocalBuilder it works as it should.
I get the msgbox and i can click okey.

But when i run debug mode or if i make an ReleasApp it wont work .

In debug i can se that i get "FCMConnected" in the log
B4X:
Private Sub fm_FCMConnected
    Log("FCMConnected")
    'here we can subscribe and unsubscribe from topics
    fm.SubscribeToTopic("ios_general") 'add ios_ prefix to all topics
End Sub

Im using Erels Sendserver (B4J code ) and the logg says ok.
I dont get any errors when compiling


I have been thrue the Guide a couple of times and i have also done new Provisoning / certification files
But no luck

So how can i findout whats my problem .
I have been reading and testing some of the issues that i could find here in the forum .
But i still have not found out my problem

I have been reading the different files in my keys library and i can se that my project name are there , but with a"1" added on the end

i have called it se.XXX.announcer and in some files i can find that string but then it is se.XXX.announcer1

can that be the problem ?

br
Nizze
 

Nizze

Active Member
Licensed User
Longtime User
The simulator and the builders are not relevant.

Are you using a production APN? Were you able to upload it to Firebase successfully?

Hi

Yes im using production APN .
And i have uploded the production p12 file to Firebase.

// Nizze
 
Upvote 0

Nizze

Active Member
Licensed User
Longtime User
Have you added the entitlement to the project?
Hi

I have added this :
B4X:
#Entitlement: <key>aps-environment</key><string>production</string>

And the "GoogleService-Info.plist" is in the special folder
 
Last edited:
Upvote 0

Nizze

Active Member
Licensed User
Longtime User
Hi erel

This is the result

Application_Start
Configuring the default app.
Application_Active
FCMConnected
Application_Pushtoken
PushToken: 1
D10F5269A40EEDFA48B52C33CF47576F52F7AD719F1A5CECA1F4F68D12D80759
<B4IExceptionWrapper: (null)>
 
Upvote 0

Nizze

Active Member
Licensed User
Longtime User
Erel

Got it up an running !!
Happy man right now

Thanks for your help

Br
Nizze
 
Upvote 0

Nizze

Active Member
Licensed User
Longtime User
I think it had something to do with *.cer files .

Now i only have aps_development.cer in Key library .
I took away file by file and tryed over and over again

And at last it started working .
But .. I'm not rellay sure if that was the problem .

Br
Nizze
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…