hansemannn / titanium-firebase-core

Use the Firebase Core SDK in the Titanium SDK 🚀
Other
31 stars 23 forks source link

IOS Firebase.core configuration issue #72

Closed sibisandaniel86 closed 2 months ago

sibisandaniel86 commented 2 months ago

What is the correct whey to configure the core on IOS in the last version, i tried all options , passing a file , passing parameters and im not able to make it work .

m1ga commented 2 months ago

check https://github.com/hansemannn/titanium-firebase?tab=readme-ov-file#installation The easiest/quickest way is to use the config file:

Download the GoogleService-Info.plist from your project and copy it to [application_name]/Resources/iphone/ (classic) or [application_name]/app/assets/iphone (Alloy)

sibisandaniel86 commented 2 months ago

firebase no longer generates a .plist file just a .json , im nut sure if its the same format as the expected .plist. even so , passing the parameters as: { APIKey: "AIzaSyBCgKuKSB_vseApla_44IO3V7.....", projectID: "caza-....", storageBucket: "caza-c........", applicationID: "1:364396655701:android:........." }

i get the error : [ERROR] Cannot configure Firebase: Options is nil. Please pass a valid options.

m1ga commented 2 months ago

Are you sure about that? I just added a new iOS app and it gives me a plist file. The JSON file is for Android

sibisandaniel86 commented 2 months ago

sorry , i was trying with the android app , i just generated a new ios app and ... , just me being tired and stupid :). thanks again .

m1ga commented 2 months ago

:+1: then I'll close this here as it is not an issue with the module