Open YutangShi opened 2 years ago
I am getting this error and i reinstall ios platform and firebase but it didn't work.
Anyone can help me? Many thanks
Error in firebase.init: ReferenceError: FIROptions is not defined
CONSOLE LOG: Error in firebase.init: ReferenceError: FIROptions is not defined 0x11efac618 - ApplicationStateTracker::ApplicationStateTracker(): m_isInBackground: 0 0x1088c9800 - WKApplicationStateTrackingView: View with page [0x108885818, pageProxyID: 5] was added to a window, _lastObservedStateWasBackground: 0, isNowBackground: 0 0x108885818 - [pageProxyID=5, webPageID=6, PID=0] WebPageProxy::updateActivityState: view visibility state changed 0 -> 1 0x108885818 - [pageProxyID=5, webPageID=6, PID=0] WebPageProxy::updateThrottleState: UIProcess is taking a foreground assertion because the view is visible 0x11efe4710 - [PID=0, throttler=0x11ef98468] ProcessThrottler::Activity::Activity: Starting foreground activity / 'View is visible' Supported compatibility version = 7 -[MAXpcManager ensureConnection]: Creating client/daemon connection: 97B7308E-D9BD-4452-B78B-F6A64AD19D9F CONSOLE LOG: [Firebase] Initialize { "error": {} } 0x11ef5c0a8 - [PID=32146] ProcessThrottler::didConnectToProcess:
Device info: iPhone 12 / IOS 14.6
iPhone 12 / IOS 14.6
firebase.nativescript.json
{ "using_ios": true, "using_android": true, "analytics": false, "firestore": false, "realtimedb": false, "authentication": false, "remote_config": false, "performance_monitoring": false, "external_push_client_only": true, "messaging": false, "in_app_messaging": false, "crashlytics": false, "storage": false, "functions": false, "facebook_auth": false, "google_auth": false, "admob": false, "dynamic_links": false, "ml_kit": false }
package.json
"dependencies": { "@nativescript/core": "~8.0.0", "@nativescript/firebase": "^11.1.3", "@nativescript/theme": "~3.0.1", }, "devDependencies": { "@nativescript/android": "8.0.0", "@nativescript/ios": "8.0.0", "@nativescript/types": "~8.0.0", "@nativescript/webpack": "beta", "typescript": "~4.0.0" },
i met this issue too.
i solved it. It should be change the firebase.nativescript.json set "messaging" to true andthen, run "ns clean", "ns run ios"
good luck to you
I am getting this error and i reinstall ios platform and firebase but it didn't work.
Anyone can help me? Many thanks
Error in firebase.init: ReferenceError: FIROptions is not defined
Device info:
iPhone 12 / IOS 14.6
firebase.nativescript.json
package.json