I am currently working on an iOS application that uses real-time streaming, and our users have requested the feature to automatically block incoming calls when streaming. I know that there is no API for this, so we decided that it has a button in the user interface that automatically calls a specific number (provider-specific) that turns on or off the blocking of incoming calls. This is done simply by opening tel: URL.
All this works fine, and although it may not be very user-friendly, as it forces users to exit the application, I really consider it the most elegant solution using the tools provided by the iOS API.
However, there is one caveat, however, some telecommunication service providers do not have a single short number that people can call to enable or disable this feature. Instead, they use long codes that have special characters, such as # and *. Unfortunately, iOS refuses to open tel: URL with these characters, presumably for security reasons. However, I was wondering if users can put these numbers in contacts, and then iOS will directly call these contacts?
I know how to directly access phone numbers from the address book, but this is useless because I will still have a problem with URLs that are not accepted. So, is there a way, say, to have a tel: URL with a contact id or something like that?
Thanks for reading and / or response. :)
source share