omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    tel: with #<code># does not work

    Pythonista
    2
    3
    2337
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dashorty
      dashorty last edited by

      I tried at first this code:

      import webbrowser
      telnumer = '1234567890'
      webbrowser.open('tel:' + telnumber)
      

      This works, but when i add the code #31# like this

      import webbrowser
      telnumer = '1234567890'
      webbrowser.open('tel:#31#' + telnumber)
      

      it doesn't.

      #31# block caller id

      What can i do?

      1 Reply Last reply Reply Quote 0
      • omz
        omz last edited by

        I don't think there's anything you can do about this. From Apple's documentation about the tel URL scheme support:

        To prevent users from maliciously redirecting phone calls or changing the behavior of a phone or account, the Phone app supports most, but not all, of the special characters in the tel scheme. Specifically, if a URL contains the * or # characters, the Phone app does not attempt to dial the corresponding phone number.

        1 Reply Last reply Reply Quote 0
        • dashorty
          dashorty last edited by

          ahh, ok.
          thanks @omz

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors