Crashlytics is not logging anything on iOS
See original GitHub issueHello,
I am having trouble logging crash events on iOS (have not tried Android yet). Here is my setup:
{
"using_ios": true,
"using_android": true,
"analytics": true,
"firestore": false,
"realtimedb": false,
"authentication": false,
"remote_config": true,
"performance_monitoring": true,
"external_push_client_only": false,
"messaging": true,
"in_app_messaging": true,
"crashlytics": true,
"storage": false,
"functions": false,
"facebook_auth": false,
"google_auth": false,
"admob": false,
"dynamic_links": true,
"ml_kit": false
}
Here is now I initialize Firebase:
firebase.init({
iOSEmulatorFlush: true,
crashlyticsCollectionEnabled: true
})
Here is how I test it:
crashlytics.sendCrashLog(new NSError({
domain: 'company.com',
code: 500,
userInfo: null
}));
crashlytics.crash();
I have enabled the Crashlytics in Firebase and have been waiting for 2 days now, but all I see is this message:
Add the Firebase iOS SDK (4.3.0 or higher) or Unity Plugin (6.15.0 or higher), then build, run, and crash your app
View the SDK docs. We’ll be listening for your app to communicate with our servers.
Am I missing a step?
Thanks.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
ios - Crashlytics is not sending Crash report from iPhone
The primary reason any crash reporter won't work on iOS is due to interference from different crash reporters. However ...
Read more >Crashlytics troubleshooting and FAQ - Firebase
Not seeing crash-free users, breadcrumb logs, and/or velocity alerts; dSYMs are missing/not uploading; Crashes are poorly symbolicated; How are crash-free ...
Read more >Crashlytics not logging in iOS app - Microsoft Q&A
It works perfectly on my Android app but on iOS it does not log anything and I am not getting any error. In...
Read more >Logging Ad Response ID with Firebase Crashlytics | iOS
Step 1: Add Firebase to an iOS application · If you would like to try logging with Firebase from a clean app, you...
Read more >Boost your Crashlytics reports with custom keys & log messages
Custom keys help you get the specific state of your app leading up to a crash or non-fatal. You can associate arbitrary key/value...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dnepromell the the thing is we are on nativescript 6.5.1, and we didn’t want to upgrade to 7+ to not change everything in the app and we have some plugins that does not work on nativescript 7+. And from what i see if we have 6 it should be version 10 of the plugin. Is there a way to do something about it ?
On NS7 I managed to log to Crashlytics with this: import {crashlytics} from ‘@nativescript/firebase/crashlytics’; declare var java: any; declare var NSError: any;
if (isAndroid) { crashlytics.sendCrashLog(new java.lang.Exception(‘test Exception’)); } else if (isIOS) { crashlytics.sendCrashLog(new NSError({ domain: ‘ShiploopHttpResponseErrorDomain’, code: 42, userInfo: null })); }
This should crash your app unless you have discardUncaughtJsExceptions set to true in nativescript.config