-
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[firebase-crashlytics AND firebase-messaging] iOS app crashes upon launch #239
Comments
Hi @rdlauer have you downloaded the GoogleService-Info.plist from firebase and placed inside App_Resources/iOS by chance? |
Yeah I did that as well (forgot to add it to my list of steps above!) |
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? |
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:
|
If get a chance later, sharing the |
Yeah no problem. I'm on node 20.11.
|
As the title suggests, after adding crashlytics and/or messaging to an iOS app, it crashes upon launch. This is easy to replicate:
ns create myapp
(I chose plain TS)npm install @nativescript/firebase-core
andnpm install @nativescript/firebase-crashlytics
app.ts
:webpack.config.js
to fix build issue:ns run ios
--> simulator boots and crashes without error messageThe text was updated successfully, but these errors were encountered: