fabric.sdk.xamarin's People
Forkers
pooran jkells muhaym code-for-india sergeymnet touchstar jaydens ivan-l chrissingh ajsmithsw innovativetechies sushihangover repoforks wellingtonsilva1992 clowe-vs wickedw golfqui lganderson novjean alexshikov nhdanh alexeygolubev90 tenkjm hongweichang nandhinigopal14fabric.sdk.xamarin's Issues
callback url and AuthConfig Builder for xamarin.forms application
I have used your example to integrate digits with my xamarin.forms application.
I was reading about digits on its website and they have used some callback url and AuthConfig Builder for their android application. But I am not able to find how to do same in xamarin.forms application. can you please help me?
Initialization order maters?
I tried to make Fabric work with the following code:
#if DEBUG
Fabric.Instance.Debug = true;
#endif
Fabric.Instance.Initialize ();
Crashlytics.Instance.Initialize ();
but it didn't work. Also it didn't crash or display any suspicious debug output.
Finally, I just put Crashlytics.Instance.Initialize ()
before Fabric.Instance.Initialize ()
:
Crashlytics.Instance.Initialize ();
#if DEBUG
Fabric.Instance.Debug = true;
#endif
Fabric.Instance.Initialize ();
Have this issue of Duplicate Java
Have this issue:
Duplicate Java type found! Mappings between managed types and Java types must be unique. First Type: ‘IO.Fabric.Sdk.Android.Services.Events.IEventsStorageListenerImplementor, Fabric, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’; Second Type: ‘Bindings.FabricSdk.Services.Events.IEventsStorageListenerImplementor, FabricSdk.Platform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’ Fabric Demo
Crashes not showing in fabric portal
First of all great work with the bindings
For some reason crashes are not being shown in the fabric's portal, the console output says it uploaded the report successfully but nothing is actually shown
Here is the console output:
[CrashlyticsCore] Adding single file 59710C8B0282-0001-358F-6A97E83BAD68.cls to report 59710C8B0282-0001-358F-6A97E83BAD68 [CrashlyticsCore] Sending report to: https://reports.crashlytics.com/spi/v1/platforms/android/apps/com.mysample.app/reports [CrashlyticsCore] Create report request ID: null [CrashlyticsCore] Result was: 202 [CrashlyticsCore] Crashlytics report upload complete: 59710C8B0282-0001-358F-6A97E83BAD68 [CrashlyticsCore] Removing report at /data/data/com.mysample.app/files/.Fabric/com.crashlytics.sdk.android.crashlytics-core/fatal-sessions/59710C8B0282-0001-358F-6A97E83BAD68.cls
Using the right profile
I am using branch io sdk which requires profile 78. Installing the fabric nuget requires profile 111. Is there a way to resolve this?
Cannot get Answers to work with iOS
First off let me say thanks for creating these bindings. Fabric works awesome and it is great we can use it with Xamarin Forms. :)
Everything works perfectly on Xamarin Android. Crashes, Answers, etc. Perfect!
I am however having some issues with iOS and I did note that you mentioned you cannot use Answers and Crashlytics together on iOS. Why is this as it works fine together on Android?
If I include Answers as a reference in my iOS project then I get the following compile error:
C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(681,3): error : Could not register the assembly 'CrashlyticsKit.Platform': error MT4118: Cannot register two managed types ('Bindings.AnswersKit.Answers, CrashlyticsKit.Platform' and 'Bindings.AnswersKit.Answers, AnswersKit.Platform') with the same native name ('Answers').
You mention that Crashlytics contains Answers so I then remove the reference from my iOS project, which then compiles fine, and instead get this exception when I try to log with Answers in my App:
AnswersKit.AnswersPlatformNotSupportedException: The PCL build of Answers is being linked which probably means you need to use NuGet or otherwise link a platform-specific Answers.Platform.dll to your main application.
I guess here it is complaining because Answers is no longer being referenced in the iOS project. So do you have a solution at all so that I can log using Answers? Android has no problems whatsoever and works fine. It would be great if iOS could do the same thing.
thanks!
Sample code for using Digits?
Can you please explain how I can set call back for DigitsButton, so I can get Success and Failure events.
Issues during Initialization
For some reasons, integration doesn't work in my app.
Imported packages:
<package id="Crashlytics" version="1.1" targetFramework="xamarinios10" />
<package id="Fabric" version="1.1" targetFramework="xamarinios10" />
Info.plist:
<key>Fabric</key>
<dict>
<key>APIKey</key>
<string>ActualValidKeyHere</string>
</dict>
Initialization code:
Crashlytics.Instance.Initialize();
#if DEBUG
Fabric.Instance.Debug = true;
#else
Fabric.Instance.Debug = false;
#endif
Fabric.Instance.Initialize();
Then trying to log an exception:
Crashlytics.Instance.RecordException(new Exception("Test Exception"));
and it fails with the following stack trace:
System.ArgumentNullException
Value cannot be null.
Parameter name: str
at Foundation.NSString..ctor (System.String str) [0x0000c] in /Users/builder/data/lanes/3985/35d1ccd0/source/xamarin-macios/src/Foundation/NSString.cs:147
at CrashlyticsKit.Crashlytics.RecordException (System.Exception exception) [0x0000b] in <15f0b4eeb6b3494eb22c04509ada3d80>:0
at iOS.AppDelegate.FinishedLaunching (UIKit.UIApplication application, Foundation.NSDictionary launchOptions) [0x0002a] in /Users/Projects/iOS/AppDelegate.cs:52
at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Users/builder/data/lanes/3985/35d1ccd0/source/xamarin-macios/src/UIKit/UIApplication.cs:79
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Users/builder/data/lanes/3985/35d1ccd0/source/xamarin-macios/src/UIKit/UIApplication.cs:63
at iOS.Application.Main (System.String[] args) [0x00008] in /Users/iOS/Main.cs:12
Is something forgotten or messed up? Registration at Fabric is fine.
All exceptions seems to be listed as non-fatal
We upgraded to the v1.1 of the library and now all crashes seems to be listed as non-fatal in Fabric. Is this a known issue or just me experiencing it? I also have to click "View all sessions" to see the stacktrace and there is no formatting there.
Our v1.0 version of the library seems to work perfectly.
Curious Exception 'WriteZStream'
Hi drungrin,
I'm using your (wonderfull) Fabric and Crashlytics packages in a Xamarin iOS project. Crashlytics report some strange Exception that I cannot completely explain. All crashes occurs in 'WriteZStream' with an 'EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000000'
This is the message in the Exception:
MANAGED EXCEPTION STACK TRACE
at Foundation.NSString..ctor (System.String ) <0x1004e25a0 + 0x00070> in :0
at CrashlyticsKit.Initializer.RecordManagedException (System.Object ) <0x100b90760 + 0x0008f> in :0
at CrashlyticsKit.Initializer.<Fabric_AfterInitialize>m__1 (System.Object , System.Threading.Tasks.UnobservedTaskExceptionEventArgs ) <0x100b90cf0 + 0x0001f> in :0
at System.Threading.Tasks.TaskScheduler.PublishUnobservedTaskException (System.Object , System.Threading.Tasks.UnobservedTaskExceptionEventArgs ) <0x100315bf0 + 0x00093> in :0
at System.Threading.Tasks.TaskExceptionHolder.Finalize () <0x100314450 + 0x00343> in :0
MANAGED EXCEPTION
System.ArgumentNullException
MANAGED EXCEPTION MESSAGE
Value cannot be null. Parameter name: str
What I cannot figure is if the Exception is in correlation with the error in WriteZStream of if this exception was raised by the exception raised from 'WriteZStream'. It's confusing.
Do you have any idea which could help me ?
Regards
Theming and Authentication with mine backend
Hello,
First of all, many thanks for your work. Indeed, I'm a iOS dev and I start my first Xamarin app and have to use Digits.
But I noticed I can't theming Digits. But in the DigitsKit (on iOS and Android), it's possible.
How can I theming the Digits flow ?
Note: https://docs.fabric.io/apple/digits/theming.html
And also, what about authentication with your own backend ?
I can't use this method to authenticate and verify user with my own backend: https://docs.fabric.io/apple/digits/advanced-setup.html#verifying-a-user
Thank you for your help,
Regards.
Documentation contradiction
The read file has a contradiction,
"In order to automate the process Crashlytics has a plugin for Android Studio (“AS”) that creates a UUID for a version.& build number when you make the project. Since there is no plugin for AS, ..."
Is there a plugin or not ??
Digits does not exists contructor
Hello, im using xamarin digits in my projet, one error is appear when invoke new Digits
Fabric.With(this, new TwitterCore(authConfig), new Digits());
/Users/jefferson/Projects/investeapp31/investeapp31/MainActivity.cs(60,60): Error CS1540: Cannot access protected member Bindings.DigitsKit.Digits.Digits(System.IntPtr, Android.Runtime.JniHandleOwnership)' via a qualifier of type
Bindings.DigitsKit.Digits'. The qualifier must be of type `investeapp31.MainActivity' or derived from it (CS1540) (investeapp31)
Examples in the main page .md
Hi,
It would be great to have some examples/how to, on your package especially in Xamarin.Forms.
Regards.
Support Profile259
I'm having problems when trying to install the package in a Xamarin.Forms project.
Here is the error:
Could not install package 'Fabric 1.1.0'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile259', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
Thanks,
Homero
Missing dSYM on Xamarin.iOS Project
When I run my app and test a crash I am getting it reported to fabric but on the fabric.io website it says it is missing the dSYM files so I don't see any stack trace or anything. Am I missing some setup for an iOS project that is required?
I created an Xcode project and setup fabric there first then I added the following code to my AppDelagate.cs:
NSObject[] fabricArray = {new Crashlytics()}; Fabric.With(fabricArray);
I added the the necessary keys to my info.plist as well. I think the only thing that might be missing is that build script that runs in Xcode. I'm not sure how to transfer that to Xamarin. Is there more detailed instructions for setting this up?
Unable to extract Crashlytics build info from the dropped APK
Hi,
Was looking into using this for a project but when I try to upload the APK with the Fabric plugin for Android Studio it complains that it can't extract the Crashlytics build info from the APK:
"Unable to extract Crashlytics build info from the dropped APK. Please make sure your Crashlytics build tool plugin is installed and enabled"
Anyone had this problem?
Wrong site link
Hi,
Thanks for the great project.
I wanted to report to you that in the page:
https://www.nuget.org/packages/Crashlytics.Sdk/2.5.5-alpha1
the link [Project Site] is linked to:
https://github.com/Drungrin/Fabric.SDK-Xamarin
which is wrong or does not work, and maybe you mean:
https://github.com/drungrin/Fabric.Sdk.Xamarin
the difference in the two links is a "-" instead of a "-".
Issues listes as WriteZStream
in our iOS app almost all our issues are listed as WriteZStream as the root cause.
But if I click an issue the top message says:
Fatal Exception: NSInvalidArgumentException
-[WCSession activationState]: unrecognized selector sent to instance 0x14fb8270
So is there any way to get this reason surfaced as the root issue? Seems there must be something "wrong" when reporting the crash via the bindings?
Filenames and line numbers in Android release builds
Feature Request:
Xamarin.Android now has support for getting filenames and line numbers out of Release stack traces: https://developer.xamarin.com/releases/android/xamarin.android_7/xamarin.android_7.4/#File_name_and_line_number_information_in_release_builds
Would it be possible to implement sending the stack traces to Fabric in such a way that the offset information would not be lost? Currently they are dropped when converting Exceptions to Java Throwables.
Add Fabric info on info.plist on Readme
Hello,
I was fighting a null referance exception using this sdk on iOS, and i found that the issue was the absence of fabric keys on plist.
i think this should be add to the readme to oriente new users.
thank you for this great and usefull port.
(Android) Bindings.FabricSdk.Services.Concurrency.UnmetDependencyException
I can't seem to get the Android version running (iOS was easy). I've ran into all sorts of issues, and right now Answers is working, but I'm getting this exception with each launch:
Bindings.FabricSdk.Services.Concurrency.UnmetDependencyException: com.crashlytics.android.core.CrashlyticsMissingDependencyException:
This app relies on Crashlytics. Please sign up for access at https://fabric.io/sign_up,
install an Android build tool and ask a team member to invite you to this app's organization.
Here's how I'm initializing:
Crashlytics.Instance.Initialize();
#if DEBUG
Fabric.Instance.Debug = true;
#endif
Fabric.Instance.Initialize(this);
Answers.Instance.LogCustom("Launch");
And here's my packages:
<package id="Answers" version="1.1" targetFramework="monoandroid70" />
<package id="Crashlytics" version="1.1" targetFramework="monoandroid70" />
<package id="Fabric" version="1.1" targetFramework="monoandroid70" />
FYI, I'm targeting Android API v24.
Library Support
Hey @drungrin! Shout out for this great library!
I'm curious are you planning to update the NuGets? There are seems new versions of the Fabric SDK are out and it would be great to understand are there any coming updates? And does it make sense to spend time for PR's?
BTW, I've found a great article on automation of com.crashlytics.android.build_id generation for Xamarin.Android project: https://lucianpantelimon.info/uploading-xamarin-android-builds-to-fabric-io-beta/
Crashlytics crash
When my app throw a exception, the Crashlytics capture but it close the app:
I am using .Net Portable PCL 4.6 - Profile44 in a Visual Studio for MAC.
Output in MainActivity,cs OnCreate (I only took the name of the company):
[Fabric] Build ID is: 853b46f4-c6ba-4ff1-....
[CrashlyticsCore] Initializing Crashlytics 2.3.16.dev
[CrashlyticsCore] Installer package name is: null
[CrashlyticsCore] Found previous crash marker.
[CrashlyticsCore] Exception handling initialization successful
[Fabric] Initializing io.fabric.sdk.android:fabric [Version: 1.3.16.dev], with the following kits:
[Fabric] com.crashlytics.sdk.android:answers [Version: 1.3.12.dev]
[Fabric] com.crashlytics.sdk.android:crashlytics [Version: 2.6.7.dev]
[Fabric] com.crashlytics.sdk.android:beta [Version: 1.2.4.dev]
[Fabric] com.crashlytics.sdk.android.crashlytics-core [Version: 2.3.16.dev]
[Fabric]
[CrashlyticsCore] Opening a new session with ID 59933FC40193-0001-648A-5B94C780E476
[Beta] Beta device token present: false
[Fabric] Could not call getId on com.google.android.gms.ads.identifier.AdvertisingIdClient$Info
[Fabric] Could not call isLimitAdTrackingEnabled on com.google.android.gms.ads.identifier.AdvertisingIdClient$Info
[Fabric] Could not get parcel from Google Play Service to capture AdvertisingId
[Fabric] Could not get parcel from Google Play Service to capture Advertising limitAdTracking
[Fabric] AdvertisingInfo not present
[Fabric] Build ID is: 853b46f4-c6ba-4ff1-....
[Fabric] Build ID is: 853b46f4-c6ba-4ff1-....
[Fabric] Requesting settings from https://settings.crashlytics.com/spi/v2/platforms/android/apps/br.com./settings
[Fabric] Settings query params were: {icon_hash=a5b43d5263c0a48f354e4bfc86ce70ac266084dd, display_version=1.0, source=1, instance=8d6626afdec270f0d40360608ccc792fcf12fbed, build_version=1}
[Fabric] Settings result was: 200
[Fabric] Settings request ID: 6ed0d3f424e715a7....
[Fabric] Writing settings to cache file...
[Fabric] Loaded settings: {"settings_version":2,"cache_duration":7200,"features":{"collect_logged_exceptions":true,"collect_reports":true,"collect_analytics":true,"prompt_enabled":false,"push_enabled":true},"analytics":{"url":"https://e.crashlytics.com/spi/v2/events","flush_interval_secs":120,"max_file_count_per_send":1,"track_custom_events":true,"track_predefined_events":true,"track_view_controllers":false,"flush_on_background":true,"max_byte_size_per_file":40000,"max_pending_send_file_count":20,"sampling_rate":1,"forward_to_google_analytics":false,"include_purchase_events_in_forwarded_events":false},"beta":{"update_suspend_duration":1800,"update_endpoint":"https://api.crashlytics.com/spi/v2/platforms/android/apps/br.com./beta_update_check"},"app":{"identifier":"br.com.","status":"activated","url":"https://api.crashlytics.com/spi/v1/platforms/android/apps/br.com.,"reports_url":"https://reports.crashlytics.com/spi/v1/platforms/android/apps/br.com./reports","update_required":false},"session":{"log_buffer_size":64000,"max_chained_exception_depth":16,"max_complete_sessions_count":4,"max_custom_exception_events":8,"max_custom_key_value_pairs":64,"identifier_mask":255},"prompt":{"title":"Send Crash Report?","message":"Looks like we crashed! Please help us fix the problem by sending a crash report.","send_button_title":"Send","show_cancel_button":true,"cancel_button_title":"Don't Send","show_always_send_button":true,"always_send_button_title":"Always Send"},"expires_at":1502829560947}
[Fabric] Build ID is: 853b46f4-c6ba-4ff1-....
[Beta] Beta kit initializing...
[Beta] Beta device token present: false
[Beta] A Beta device token was not found for this app
[Answers] Analytics collection enabled
[CrashlyticsCore] Initialization marker file created.
[Answers] Custom event tracking enabled
[Answers] Predefined event tracking enabled
[CrashlyticsCore] Finalizing previously open sessions.
[CrashlyticsCore] Closing open sessions.
[CrashlyticsCore] Closing session: 59933DA90177-0002-5DDA-...
[CrashlyticsCore] Collecting session parts for ID 59933DA90177-0002-5DDA-..
[CrashlyticsCore] Session 59933DA90177-0002-5DDA-.. has fatal exception: false
[CrashlyticsCore] Session 59933DA90177-0002-5DDA-.. has non-fatal exceptions: false
[CrashlyticsCore] No events present for session ID 59933DA90177-0002-5DDA-5B94C780E476
[CrashlyticsCore] Removing session part files for ID 59933DA90177-0002-5DDA-5B94C780E476
[CrashlyticsCore] Closed all previously open sessions
[CrashlyticsCore] Starting report processing in 1.0 second(s)...
[CrashlyticsCore] Initialization marker file removed: true
[Answers] Sending 1 analytics files to https://e.crashlytics.com/spi/v2/events
[Answers] Response code for analytics file send is 200
[CrashlyticsCore] Checking for crash reports...
[CrashlyticsCore] No reports found.
And When throw a Exception:
[CrashlyticsCore] Crashlytics is handling uncaught exception "null" from thread Thread-7283
java.lang.NullPointerException in your plugin 1.1 and 1.4 versions
Hi there,
I' am trying to implement your plugin in my project, but I have a problem.
The First time that I run my program, It works fine, but the second time that I run, It crashs.
Here, I will paste code that I implement, in MainActivity.cs:
Crashlytics.Instance.Initialize();
Fabric.Instance.Debug = true;
Fabric.Instance.Initialize(this);
When I comment this lines of code, the program is stable.
I will paste, the output message:
10-16 12:12:57.552 D/CrashlyticsCore(17187): Crashlytics is handling uncaught exception "null" from thread Thread-1807
10-16 12:12:57.562 E/CrashlyticsCore(17187): An error occurred in the fatal exception logger
10-16 12:12:57.562 E/CrashlyticsCore(17187): java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
10-16 12:12:57.562 E/CrashlyticsCore(17187): at com.crashlytics.android.core.CrashlyticsUncaughtExceptionHandler.writeFatal(CrashlyticsUncaughtExceptionHandler.java:803)
10-16 12:12:57.562 E/CrashlyticsCore(17187): at com.crashlytics.android.core.CrashlyticsUncaughtExceptionHandler.handleUncaughtException(CrashlyticsUncaughtExceptionHandler.java:271)
10-16 12:12:57.562 E/CrashlyticsCore(17187): at com.crashlytics.android.core.CrashlyticsUncaughtExceptionHandler.access$100(CrashlyticsUncaughtExceptionHandler.java:55)
10-16 12:12:57.562 E/CrashlyticsCore(17187): at com.crashlytics.android.core.CrashlyticsUncaughtExceptionHandler$5.call(CrashlyticsUncaughtExceptionHandler.java:247)
10-16 12:12:57.562 E/CrashlyticsCore(17187): at com.crashlytics.android.core.CrashlyticsUncaughtExceptionHandler$5.call(CrashlyticsUncaughtExceptionHandler.java:244)
10-16 12:12:57.562 E/CrashlyticsCore(17187): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
10-16 12:12:57.562 E/CrashlyticsCore(17187): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
10-16 12:12:57.562 E/CrashlyticsCore(17187): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
10-16 12:12:57.562 E/CrashlyticsCore(17187): at io.fabric.sdk.android.services.common.ExecutorUtils$1$1.onRun(ExecutorUtils.java:75)
10-16 12:12:57.562 E/CrashlyticsCore(17187): at io.fabric.sdk.android.services.common.BackgroundPriorityRunnable.run(BackgroundPriorityRunnable.java:30)
10-16 12:12:57.562 E/CrashlyticsCore(17187): at java.lang.Thread.run(Thread.java:818)
10-16 12:12:57.562 D/CrashlyticsCore(17187): Closing open sessions.
10-16 12:12:57.562 D/CrashlyticsCore(17187): Closing session: 59E4942F0396-0001-4323-CBD3347C1A6D
10-16 12:12:57.562 D/CrashlyticsCore(17187): Collecting session parts for ID 59E4942F0396-0001-4323-CBD3347C1A6D
10-16 12:12:57.562 D/CrashlyticsCore(17187): Session 59E4942F0396-0001-4323-CBD3347C1A6D has fatal exception: false
10-16 12:12:57.572 D/CrashlyticsCore(17187): Session 59E4942F0396-0001-4323-CBD3347C1A6D has non-fatal exceptions: false
10-16 12:12:57.572 D/CrashlyticsCore(17187): No events present for session ID 59E4942F0396-0001-4323-CBD3347C1A6D
10-16 12:12:57.572 D/CrashlyticsCore(17187): Removing session part files for ID 59E4942F0396-0001-4323-CBD3347C1A6D
10-16 12:12:57.572 D/CrashlyticsCore(17187): Opening an new session with ID 59E494390248-0002-4323-CBD3347C1A6D
10-16 12:12:57.582 D/Beta (17187): Beta device token present: false
10-16 12:12:57.582 D/CrashlyticsCore(17187): Crashlytics completed exception processing. Invoking default exception handler.
No Data Showing up.
Hello All - I hope somebody here can assist, I have installed the Fabric SDK into my Xamarin project, but after testing a crash as well as multiple "messages" the Fabric.io site is not reporting any activity. Has anybody had a similar issue, or have an suggestions on how to fix this ?
This is the information that is reported from the debug logs
2018-02-27 16:32:10.518 [Crashlytics] Version 3.8.4 (121) 2018-02-27 16:32:10.617 [Crashlytics:Crash:Reports] Packaged report with id '678047d5dc264b67b63a792798592bc5' for submission 2018-02-27 16:32:11.015 [Crashlytics:Crash:Reports] Submitting report 2018-02-27 16:32:11.015 [Crashlytics:Crash:Reports] Submitting async /var/mobile/Containers/Data/Application/Library/Caches/com.crashlytics.data/com.myapp.bundleID/v3/prepared/hash.multipartmime 2018-02-27 16:32:11.016 [Crashlytics:Crash:Client] A task currently exists for this upload, skipping 2018-02-27 16:32:11.066 [Fabric] settings downloaded successfully 2018-02-27 16:32:11.066 [Fabric] Settings are available for consumption 2018-02-27 16:32:11.251 [Crashlytics:Crash:Reports] completed submission of /var/mobile/Containers/Data/Application/hash/Library/Caches/com.crashlytics.data/com.myapp.bundleID/v3/prepared/hash.multipartmime 2018-02-27 16:32:11.252 [Crashlytics:Crash] report submission successful 2018-02-27 16:32:12.723 [Crashlytics:Crash] Warning: NSUncaughtExceptionHandler is 'xamarin_get_block_descriptor' in '/var/containers/Bundle/Application/hash/AppName.iOS.app/AppName.iOS'
And this is the code Initialize the crashlytics/fabric app (it is the first thing called in the 'finished launching' method
Crashlytics.Instance.Initialize(); Fabric.Instance.Initialize(); Fabric.Instance.Debug = true; Crashlytics.Instance.Log("Hello world"); <-- attempting to get something to show up on the website.
Pls document: Crashlytics etc should work on iOS7 but this project requires iOS8
iOS7 support documented here https://docs.fabric.io/apple/supported-versions.html
However, Fabric.Sdk.Xamarin seems have an undocumented dependency on iOS8:
/Users/trevorc/Documents/src/funtimes/FunTimesX/FunTimesX.iOS/MTOUCH: Error MT1305: The binding library 'FabricSdk.Platform.dll' contains a user framework (FabricSdk.Platform.dll), but embedded user frameworks require iOS 8.0 (the deployment target is Fabric.framework). Please set the deployment target in the Info.plist file to at least 8.0. (MT1305) (FunTimesX.iOS)
Set callback for TwitterCore.Instance.LogIn
Hi There, thanks for these bindings. I am trying to create login using twiyterCore (Digits already done thanks to sample provided.) but I am really struggling to create the callback required for TwitterCore.Instance.LogIn, There is no setcallback on twitterLoginButton. You can actually assign to the the callback property but I cannot seem to create the callback as there is no Callback definition. Would you be able to point me in the right direction ? Thanks
Digits package contains corrupted data
Dropping .apk in Android Studio plugin for Beta distribution issue
Hello,
just followed your instructions step by step. Everything's working as expected, Crashlytics issue reporting works as expected. The only issue I'm getting is the following:
When I try to drop the generated .apk into the Android Studio Fabric plugin in order to distribute it through Beta I'm getting this error:
Unable to extract Crashlytics build info from the dropped APK. Please make sure your Crashlytics build tool plugin is installed and enabled.
As I don't get any kind of logs, do you may have any clue how to solve this issue?
Nullpointer exception in iOS bindings
Can you add a null check before setting the stacktrace at line 34?
https://github.com/drungrin/Fabric.Sdk.Xamarin/blob/master/Sources/CrashlyticsKit.Droid/Crashlytics.cs#L34
When creating a custom exception class the stacktrace will be NULL, resulting in crashes when doing this:
catch (Exception ex)
{
var customEx = new CrashlyticsException(""My custom error", ex);
Crashlytics.Instance.RecordException(customEx);
}
AnswersKit.Droid initializer incompatible with other kits
The initializer calls Fabric.With which prevents any other kits being used. see #51
Package Fabric 1.4.0 is not compatible with netstandard1.4
Hello:
Is there any plan to support net standar?
Thank's and regards
java.lang.IllegalArgumentException: Fabric could not be initialized, API key missing from AndroidManifest.xml
Getting the following, even though I've added the key to AndroidManifest.xml.
I even tried manually adding both API key and secret to fabric.properties and copying that file from the Android Studio generated project to the Xamarin.Forms Android project, but that doesn't have any effect either.
java.lang.IllegalArgumentException: Fabric could not be initialized, API key missing from AndroidManifest.xml. Add the following tag to your Application element
<meta-data android:name="io.fabric.ApiKey" android:value="YOUR_API_KEY"/>
Unable to Add in PCL
Hi drungrin,
when i am trying to add this package i am getting the following error.
Could not install package 'Fabric 1.1'. You are trying to install this package into a project that targets 'portable-net45+win+wp80+MonoAndroid10+xamarinios10+MonoTouch10', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
i tried to download your sample solution in this solution also i am facing problems.
Can you please help me out on this.
Please Respond on this issue.
No Crash reports
Maybe I am doing something wrong but there isn't really a walkthrough and the sample project doesn't really follow your ReadMe.
I have my project setup. I have the crashlytics key and everything. I added what is necessary to the android manifest(same stuff that is added in Android Studio by the plugin). I also have the string resource that is referred in the ReadMe. I have this code in my MainApplication file..
TwitterAuthConfig authConfig = new TwitterAuthConfig(Constants.TwitterApiKey, Constants.TwitterBuildSecret);
Fabric.With(AppContext, new TwitterCore(authConfig), new Digits());
(which was copied and pasted from your sample)
I am manually throwing an exception in my app to test out the crash reporting. However, I'm not seeing anything in Crashlytics. Any thoughts on what I am missing?
TaskScheduler.UnobservedTaskException should be non-fatal by default
This is the way it works in .net 4.5 and above, including Xamarin.Android.
Please at least make it configurable.
Crashlytics crash
Hi,
Firs of all thanks for porting this library.
My question is: when you will able to update the Crashlytics, and other components?
Because of bug it's crashing on:
[ANSWriteEventOperation logLineWithTimestamp:eventName:payloadDictionary:]
The last version at this moment is 3.8.4
Thanks
Xamarin Forms : Can't get crash details for iOS.
I am implementing Fabric crashlytics for my cross-platform project in xamarin forms.
As per instruction I followed the steps and the Android crash report is working fine, but for iOS, it's not.
I have initialized Crashlytics and Fabric in AppDelegate.cs and added a key in info.plist. The only part which is different than the XCode is run a script in the build phase. But for Xarmin forms in VS, there is no such part.
And in the dashboard, I am getting crash details like below.
Found 1 unsymbolicated crashes from missing dSYMs in 1 version in the last 24 hours. Click to view details
So I manually upload the zip file which contains the dSYM file. But it again gives the error like below.
We're processing the uploaded dSYM(s). Please check back in a few minutes for the status.
But nothing gets updated even after that. And when I refresh a page, it again asks for a dSYM file.
Can anyone help me in this?
Filename unknown after first crash
First, thanks for your sdk !
I have a problem with the filename.
For the first crash, when I launch my app again, the stack is good on fabric.io but for every crash after the first one, I got "filename unknown" in the stacktrace.
Have you ever noticed that ? Thanks in advance
iOS: unsymbolicated crashes from missing dSYMs
Hi,
All build in iOS increment this error :
Found 2 unsymbolicated crashes from missing dSYMs in 1 version in the last 24 hours. Click to view details
Where to add shell command ?
./Fabric.framework/run AAAAAAAAAAAAAAAAAAAA BBBBBBBBBBBBBBBBB
Question about binaries
Hi,
I'm looking into using these packages for Fabric and Crashlytics and I have some questions. I've made a test solution (which works) and looked a bit at the code in the repository.
I have some general questions that I need to answer to get this approved internally in the project I am using and was wondering if you could help me.
Are the NuGet packages essentially bindings to call the Fabric executables?
There seems to be a number of binary files in the solution. Are those copies of the Crashlytics files you would use when writing a native app for Android or iOS?
If the project is reusing Fabric binaries, is there any method to verify the files haven't been tampered with? Sorry for this last question, but since the project handles sensitive information I must ask.
Thanks and I hope you're not offended by the last question ;)
dSYMs files required
I installed the utility correctly in iOS but after uploading the log files, it appears that it requires dSYMs files in fabric.
https://docs.fabric.io/apple/crashlytics/missing-dsyms.html#required-dsyms
App Example?
Hi, do you have any Twiiter Digits + Xamarin.Forms example?
Android crashes aren't readable
Thanks for putting this library together!
I'm using your library v1.1
I'm running Xamarin Studio with Xamarin.Android Version: 7.0.2.37
SDK Tools Version: 25.2.3
SDK Platform Tools Version: 25.0.1
SDK Build Tools Version: 23.0.3
JDK 1.8
Not using ProGuard or Multidex
On the Android side, when a crash report comes through to the Fabric dashboard, I do not see corresponding class names or line numbers within the crash report. I don't see references to anything C#, just some java references.
Is anyone else experiencing this? Any advice on how to fix it? Not having the info makes the crash indecipherable.
Thanks again.
Any Answers event causes NullReferenceException crash on Android, iOS works
Any logging event I use in the Answers Kit returns the following error with a crash:
System.NullReferenceException: Object reference not set to an instance of an object
This only happens on Android, iOS is working fine
Both Answers and Crashlytics have been initialised in the main activity and I've tried the following and all causing crashes:
Answers.Instance.LogCustom("test");
Answers.Instance.LogCustom("test", null);
Answers.Instance.LogLogin("login", true);
Dictionary<string, object> attributes = new Dictionary<string, object>();
attributes.Add("test", "test");
Answers.Instance.LogCustom("test", attributes);
Xamarin Forms iOS Digits.Instance.Initialize is not working?
Hi,
I'm on the latest and greatest (PCL 4.6) and I've spent several hours trying to get iOS Digits to work, but I keep running into an exception on startup. It crashes when I invoke the line (from the AppDelegate's FinishedLaunching method):
Digits.Instance.Initialize(TwitterKey, TwitterSecret);
With the following exception:
Message: Object reference not set to an instance of an object
Source: DigitsKit.Platform
Stack Trace: at DigitsKit.Initializer.Initialize (DigitsKit.IDigits digits, System.String consumerKey, System.String consumerSecret)
I was able to get the Android project to work with Crashlytics, Answers and Digits. On iOS, I'm able to get Crashytlics and Answers to work, but just not Digits.
Any suggestions would be much appreciated and please let me know if you need anymore info.
Unable to get any data in Fabric
Hi!
I setup the XCode project, enabled Answers and Fabric says 1 active user.
I then copied the Fabric key/value from info.plist to Xamarin and added:
public override bool FinishedLaunching (UIApplication app, NSDictionary options)
{
Fabric.Instance.Debug = true;
Fabric.Instance.Initialize();
Answers.Instance.LogCustom("Video Played", new Dictionary<string, object> {
{ "Category", "Comedy" },
{ "Length", 350 }});
I also added a nullpointer exception inside my app and made it crash.
But now there are 0 active users in the app and 0 crashes.
Log:
2016-08-30 14:34:27.590 MyApp[52798:11063760] [Fabric] Initialized with kit versions: {
"io.fabric.sdk.ios" = "1.6.7";
2016-08-30 14:34:28.087 MyApp[52798:11063764] [Fabric] settings downloaded successfully
2016-08-30 14:34:28.087 MyApp[52798:11063764] [Fabric] Settings are available for consumption
}
Is there anything else I need to do to make this work?
Package cannot be installed
When trying to install the package to my PCL Project I receive the following error:
Severity Code Description Project File Line Suppression State
Error Could not install package 'Fabric 1.0.0'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile111', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
I am using Visual Studio 2015.
FabrikSDK dependency not resolved in sample forms project on IOS
I am trying to run the sample forms project. I checked out the latest and to import projects I changed my project profile to 111. Had to retarget the packages and also update Xamarin Forms to 2.3.2.127.
After that I am not able to compile the IOS Project, Xamarin Studio is not able to resolve CrashlyticsKit and FabricSdk. For some reason DigitsKit is being resolved. Would really appreciate any pointers to resolve.
using CrashlyticsKit; << Error
using DigitsKit;
using FabricSdk;<< Error
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.