Is it possible to programmatically call a telephone number in JS?

前端 未结 5 715
挽巷
挽巷 2021-02-08 06:53

So basically right now I can create a button with an A tag that has an href=\"tel:XXXXXXXXXXX\" and if a user clicks / taps on that it will bring them into their phone applicati

5条回答
  •  囚心锁ツ
    2021-02-08 07:28

    You probably just can't, when your APP is running from mobile browser. You'll need to wrap your app as cordova app or similar. Then you can for example use PhoneGap-PhoneDialer

提交回复
热议问题