MohamedRejeb / Calf

Calf is a library that allows you to easily create adaptive UIs and access platform specific APIs with Compose Multiplatform (Adaptive UI, File Picker, WebView, Permissions...).
https://mohamedrejeb.github.io/Calf/
Apache License 2.0
950 stars 42 forks source link

Fix openAppSettings on iOS 18 #183

Closed cvb941 closed 1 month ago

cvb941 commented 1 month ago

On iOS 18, openAppSettings() for notifications fails with:

BUG IN CLIENT OF UIKIT: The caller of UIApplication.openURL(_:) needs to migrate to the non-deprecated UIApplication.open(_:options:completionHandler:). Force returning false (NO).

Here is a relevant apple thread: https://forums.developer.apple.com/forums/thread/763568

This PR fixes the issue.