Open yuroyami opened 9 months ago
Hello, thank you for submitting the issue. Could you please also provide the log crash?
@yuroyami I tried to reproduce it on 1.5.11 Compose (1.9.21 Kotlin) on the clean project made from that template and it worked as expected. Could you please also provide the reproducible example and the following information? Versions
@mazunin-v-jb I am away from my work station for quite some while but as far as I remember, the issue occurred while I was using a phone number that contains white spaces and parentheses. I did not try using a phone number without white spaces or the parentheses.
Kotlin version: 1.9.21 Compose-jb: 1.5.11 OS: iOS 16.3.1 arm64
Thank you for your answer. As far as I remember, I've tried just a number without any special symbols like you described. I'll take a look.
Hello, @yuroyami! Sorry for long responding. I've tried to dig dipper into this problem, so I've created a reproducer with many cases of phone numbers. Could you please check it? For me, it works as expected on both iOS and Android.
Also, for iOS testing, please use a physical device (iPhone or iPad). iOS Simulator can't forward tel:/
uri to phone app cause it doesn't have it.
Maybe that was the reason for different behavior in our cases.
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
(@mazunin-v-jb : moved versions here) Kotlin version: 1.9.21 Compose-jb: 1.5.11 OS: iOS 16.3.1 arm64
Consider the following code:
The syntax
tel: + phone number
is used for Android only (afaik), however, it is not working on iOS. I haven't tested yet whether the iOS syntax (tel:// + phone number
) is handled on iOS (probably cannot be handled on Android if it works on iOS). The LocalUriHandler needs to route both syntaxes to their proper handlers on each platform, replacingtel:
withtel://
for iOS, and removing the two slashes if it is being routed to Android fromtel://
syntax.In order to launch a telephony URI for iOS, I use this code for now: