문제

Is it possible to dial a USSD code via URL on iPhone using Safari or email (via hyperlink).

I am able to dial a normal phone number but it seems apple doesn't allow us to use * or # in the url? is it really like this?

This is what I am dialing via URL (hyperlink):

<a href="tel:*325#">Dial</a>
도움이 되었습니까?

해결책

Apparently it is not possible without the use of private API in the objective c code (which apple won't accept on Apple store).

Please see the below mentioned URL:

http://developer.apple.com/library/ios/#featuredarticles/iPhoneURLScheme_Reference/Articles/PhoneLinks.html

This is what they have mentioned: "Specifically, if a URL contains the * or # characters, the Phone application does not attempt to dial the corresponding phone number".

Hope it helps someone else.

Regards,

Reno Jones

다른 팁

Try to

replace:   #     to     %23

this one:
<a href="tel:*325%23">Dial</a>

or this one:
<a href="tel://*325%23">Dial</a>

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top