Philipp Hofmann
Philipp Hofmann
According to the [Apple docs](https://developer.apple.com/documentation/uikit/app_and_environment/responding_to_the_launch_of_your_app/about_the_app_launch_sequence#3894431) > Prewarming an app results in an indeterminate amount of time between when the prewarming phase completes and when the user, or system, fully launches...
Prewarming can execute code up to `viewDidLoad` of a UIViewController, and keep your app in the background. It can pause at any stage from creating the process up to `viewDidLoad`...
Maybe using `__mod_init_func` in the data section of Mach-O binary could help. [An example](https://stackoverflow.com/a/30703178/1702958) of how to use it.
It seems like we can use, see https://eisel.me/startup ``` if ([[NSProcessInfo processInfo].environment[@"ActivePrewarm"] isEqual:@"1"]) { // The ActivePrewarm variable indicates whether the app was launched via pre-warming. // Based on this,...
@mitsuhiko, @k-fish, and I agreed on reporting the app start type in the app context as `start_type : cold | cold.prewarmed | warm | warm.prewarmed`. [Internal Notion Page](https://www.notion.so/sentry/Cocoa-Report-Prewarmed-App-Starts-2a48da2973364728b7ee769daee34064#8109159ee5bd411c9c281a26e1c95607) for more...
Docs PR https://github.com/getsentry/sentry-docs/issues/5215
@brustolin, can't we close this because we don't need it when having a dependency to Swift, which we will have with https://github.com/getsentry/sentry-cocoa/pull/2162?
There are discussions now to remove this API https://github.com/getsentry/sentry-javascript/issues/5660.
I'm not an expert on .NET MAUI, but could you include the Cocoa SDK via Swift Package Manager or CocoaPods, @mattjohnsonpint? Maybe that solves your issue?
@NachoSoto, thanks for offering your help. We would be happy to help with testing it out, but I don't have the resources right now to resolve your main blocker.