Skip to content

Commit

Permalink
Use actual openURL method on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ASalavei committed Sep 18, 2024
1 parent 1ca83c1 commit 85029c8
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import platform.Foundation.NSURL.Companion.URLWithString
import platform.UIKit.UIApplication

internal actual fun URIHandler_openUri(uri: String) {
UIApplication.sharedApplication.openURL(URLWithString(uri)!!)
UIApplication.sharedApplication.openURL(
url = URLWithString(uri)!!,
options = emptyMap<Any?, Any>(),
completionHandler = null
)
}

// TODO: not sure if correct.
Expand Down

0 comments on commit 85029c8

Please sign in to comment.