Comments (6)
Hi @rdlauer have you downloaded the GoogleService-Info.plist from firebase and placed inside App_Resources/iOS by chance?
from firebase.
Yeah I did that as well (forgot to add it to my list of steps above!)
from firebase.
Do you happen to have the stack you see by chance? It could just be order of operations in how the init is setup as I don't see that here.
For example, with this setup I don't see what's described (and also see no webpack complaints - meaning no webpack config changes should be needed).
import { Application, ApplicationEventData } from '@nativescript/core';
import { firebase } from '@nativescript/firebase-core';
import '@nativescript/firebase-crashlytics';
Application.on(Application.launchEvent, async (args: ApplicationEventData) => {
await firebase().initializeApp().then(async() => {
const crashlytics = firebase().crashlytics();
if (crashlytics.checkForUnsentReports()) {
crashlytics.log('Sending unsent crash reports...');
crashlytics.sendUnsentReports();
}
});
// bootstrap app, eg:
runNativeScriptAngularApp({
appModuleBootstrap: () => platformNativeScript().bootstrapModule(AppModule)
});
Possible to share the package.json by chance, would be curious there?
from firebase.
Hi @NathanWalker - thanks again for helping out here. I just created a new app and used your init code above...and it works! I've got a few notes here on little doc updates and will wrap these up in a PR soon.
FYI I DID still have to update the webpack config due to this error:
ERROR in ./node_modules/source-map/lib/read-wasm.js 30:15-30
Module not found: Error: Can't resolve 'path' in '/Users/roblauer/Documents/apps/fbtest/node_modules/source-map/lib'
from firebase.
If get a chance later, sharing the package.json
would be interesting to see if something in there leads to the config issue (have not seen that before - using node 20.10.0 here).
from firebase.
Yeah no problem. I'm on node 20.11.
{
"name": "myapp",
"main": "app/app.ts",
"version": "1.0.0",
"private": true,
"dependencies": {
"@nativescript-community/ui-material-floatingactionbutton": "^7.2.29",
"@nativescript-community/ui-pulltorefresh": "^2.5.3",
"@nativescript/background-http": "^6.0.0",
"@nativescript/camera": "^5.1.1",
"@nativescript/core": "~8.6.2",
"@nativescript/datetimepicker": "^2.1.13",
"@nativescript/geolocation": "^8.3.1",
"@nativescript/haptics": "^3.0.2",
"@nativescript/imagepicker": "^3.0.1",
"@nativescript/iqkeyboardmanager": "^2.1.1",
"@nativescript/theme": "~3.0.2",
"@nstudio/nativescript-fluid-segmented-bar": "^1.0.2",
"@nstudio/nativescript-loading-indicator": "^4.3.4",
"@triniwiz/nativescript-image-cache-it": "^7.4.0",
"@triniwiz/nativescript-star-ratings": "^2.0.3",
"email-validator": "^2.0.4",
"just-clone": "^6.2.0",
"libphonenumber-js": "^1.10.53",
"nativescript-carousel": "^7.0.1",
"nativescript-drop-down": "^6.0.2",
"throttle-debounce": "^5.0.0"
},
"devDependencies": {
"@nativescript/android": "8.6.2",
"@nativescript/ios": "8.6.3",
"@nativescript/types": "~8.6.1",
"@nativescript/webpack": "~5.0.18",
"@types/throttle-debounce": "^5.0.2",
"typescript": "~5.3.3"
}
}
from firebase.
Related Issues (20)
- [Firebase-storage][Android] Error: An unknown error occurred, please check the HTTP result code and inner exception for server response. HOT 1
- Migrating from legacy FCM APIs to HTTP v1 HOT 3
- Expost remove listeners for firebase messaging
- Support for new version of Firebase HOT 6
- Error calling setConsent() in the last version. HOT 2
- [firebase 3.2.x] Android "default FirebaseApp is not initialized" HOT 1
- Foreground and background notifications OK, but what about when the app is killed? HOT 3
- firebase["ServerValue"].TIMESTAMP how do we use this in a new library HOT 1
- iOS build fails with "value of optional type ... must be unwrapped" error
- [@nativescript/firebase-messaging-core][android] Error when trying to register device HOT 3
- The operation couldn't be completed. No APNS token specified before fetching FCM token HOT 1
- [@nativescript/firebase-messaging-core][iOS] get notification from third-party service
- Cannot disable Ad ID support with `$NSFirebaseAnalyticsWithoutAdIdSupport=true` HOT 1
- [@nativescript/firebase-performance][android] Not monitoring network requests HOT 1
- [@nativescript/firebase-admob] Warning on exports
- [@nativescript/firebase-storage] getDownloadURL closes app in IOS without error
- Firebase initialization error: crashlytics is not a function HOT 2
- ERROR TypeError: Could not load view for: BannerAd.Error
- @nativescript/firebase-admob crashed without any error message. Application just disappear.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firebase.