NoBetterName
May 06, 2017 - 03:22
Can Pythonista make a phone call? I prefer to do this in my app, not loading the phone app.
Can Pythonista make a phone call? I prefer to do this in my app, not loading the phone app.
Kinda. While there is no API to make a phone call, you can use the webbrowser module to open a tel:PHONE_NUMBER url. This will show a dialog, asking for confirmation to initiate the call. This should work for you since, when the call ends, you automatically return to Pythonista.
For example, this code makes a call to Amazon Germany:
import webbrowser
webbrowser.open('tel:+49-800-2629663')
015238994981