Issue: How do you configure/change the Raygun directory? It is visible to users of iOS document based apps.
jonlipsky
Posted on
Aug 04 2020
I am switching from another crash reporting solution to Raygun within a Xamarin.iOS app. This app is a document based app, and uses the built-in iOS file browser UI. When Raygun is integrated with the app, the SDK creates a "RaygunIO" folder in the applications local document directory that is visible to users in the app, within the Files app, and within other apps that use the system file browser. Is it possible to configure the path so that the directory is located in a private location that is not visible to end users?
It appears to me that the only way would be to build a custom version of the SDK, and updating the RaygunFileManager class. (https://github.com/MindscapeHQ/raygun4net/blob/master/Mindscape.Raygun4Net.Xamarin.iOS.Unified/RaygunFileManager.cs)
Sam
Raygun
Posted on
Aug 05 2020
Hi Jon,
Thanks for bringing this to our attention. At a glance it looks like we'll need to make the root directory path a setting so that it can be overridden. I'll make a ticket to work on this in a future sprint, unfortunately I can't provide an ETA for this.
Regards,
Sam
jonlipsky
Posted on
Aug 06 2020
Thanks. If you tell me how you want it implemented, I’d be happy to make the change and submit a PR.
Deleted User
Raygun
Posted on
Aug 09 2020
Hi Jon,
Thank you for the offer. For this scenario we would expect an option in the settings to be available here: https://github.com/MindscapeHQ/raygun4net/blob/master/Mindscape.Raygun4Net.Xamarin.iOS/RaygunSettings.cs.
This optional directory would then be passed to the RaygunFileManager to override the default location. https://github.com/MindscapeHQ/raygun4net/blob/b7f4b111ae553addaa981b1628b2f4268ced5ab6/Mindscape.Raygun4Net.Xamarin.iOS.Unified/RaygunFileManager.cs#L33
Please let me know if you have any more questions.
Regards, Mitchell.
John Micheal
Posted on
Aug 28 2020
i think so the same
jonlipsky
Posted on
Sep 03 2020
I have submitted a pull request with this change: https://github.com/MindscapeHQ/raygun4net/pull/437
jonlipsky
Posted on
Sep 03 2020
It would be great to know when an update with this could be published to Nuget.?.?
Deleted User
Raygun
Posted on
Sep 04 2020
Hi Jon,
Thank you for the GitHub PR. I have created a ticket for the Crash Reporting team to review in their next sprint. This next sprint begins in two weeks time but depending on workload this may be picked up sooner. We will update both the GitHub PR and this forum thread once we have reviewed and released these changes.
Thank you again for taking the time to submit the PR.
Regards, Mitchell.
Deleted User
Raygun
Posted on
Sep 15 2020
Hi Jon,
Just updating this thread to let you know we have released your changes to the Raygun provider for Xamarin iOS. It is now available in the latest package version v6.1.0 (https://www.nuget.org/packages/Mindscape.Raygun4Net.Xamarin.iOS.Unified/6.1.0).
Thank you, Mitchell.
jonlipsky
Posted on
Sep 15 2020
Thanks for getting the PR reviewed and released so quickly. I appreciate it!