open phone app on IOS with AS3 code

439 views Asked by At

Is it possible, with AIR app, to automatically open the phone app on IOS when the user clicks on the number ?

I've managed to do so with Android :

phoneNumber.addEventListener(MouseEvent.CLICK, phoneClick, false, 0, true);

function phoneClick(event:MouseEvent):void 
{ 
navigateToURL(new URLRequest("tel:255050"));
}

But it's not working on IOS.

Thank you for your help,

1

There are 1 answers

0
Mrugesh On

Yes. We can do it using the Native Extension. You have to develop the Native Extension for your application and AIR Application will pass the request to the Native Extension and Native Extension will be execute it.

Native Extension is nothing but Native Application development which will be provide OS Level request execution from AIR Application.

Please refer given below link to get How Native Application will open another application: Click Here For Native Application Help