firebase C++ sdk on ios firebase::App::Create returns nullptr -


the below "helpful" messages logged underlying objective-c sdk:

error: unable configure firebase services: neither name nor options can nil.  <notice>: [2017.07.28-02.15.27:187][585] created firebase app: 0x0  <notice>: [firebase/core][i-cor000012] not locate configuration file: 'googleservice-info.plist'. 

of course, passing app name , options c++ api (and none of them nullptr):

firebase::appoptions appoptions; const char* app_id = ... appoptions.set_app_id(app_id); const char* project_id = ... appoptions.set_project_id(project_id); const char* api_key = ... appoptions.set_api_key(api_key); const char* gcm_sender_id = ...     appoptions.set_messaging_sender_id(gcm_sender_id); const char* database_url = ... appoptions.set_database_url(database_url); const char* storage_bucket = ... appoptions.set_storage_bucket(storage_bucket); firebase::app* appptr = firebase::app::create(appoptions, app_id); log("created firebase app %p", appptr); 

hi firebase engineer here,

we not expose required options in firebase::appoptions interface. configuration file (plist on ios / json on android) specify number of configuration values required api not specified developers during app initialization. therefore - @ moment - require config file (plist on ios) included in application in order initialize underlying obj-c sdk.

i'm sure you've @ it, our setup flow documented here: https://firebase.google.com/docs/cpp/setup

cheers, stewart


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -