Dial number in iOS really need confirmation?

前端 未结 3 1929
我在风中等你
我在风中等你 2021-01-03 03:39

I am using the following code to dial number and testing with my device. It seems no confirmation is needed, correct?

NSURL *url = [NSURL UR         


        
3条回答
  •  抹茶落季
    2021-01-03 04:21

    Confirmation isn't required but it's desirable as it prevents confusion when users are dropped into the dialing application. one thing that you can do that was suggested by another answer is to use telprompt rather then just tel. This will provide the prompt that's necessary via a simple dialog. It also has a very nice side-effect of dropping users back into the calling application after the phone call is complete. This key elements allows you to keep going rather then getting kicked out of your app.

    A category that further explains this code and a sample project is available here: http://www.raizlabs.com/dev/2014/04/getting-the-best-behavior-from-phone-call-requests-using-tel-in-an-ios-app/

提交回复
热议问题