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.


    website to app redirect

    Pythonista
    2
    4
    2108
    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.
    • aidensala
      aidensala last edited by

      Does anyone know how the base64 value is generated which can redirect you to an app on the ios device? An example of this is when pythonista does the standalone app thing. Does anyone have the script or know how it works?

      cvp 1 Reply Last reply Reply Quote 0
      • cvp
        cvp @aidensala last edited by

        @aidensala If I correctly understand, see here

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

          @cvp my question is similar, but more of, if i wanted to open certain apps via a web url in safari would i be able to do so? and could i generate the links in pythonista?

          cvp 1 Reply Last reply Reply Quote 0
          • cvp
            cvp @aidensala last edited by cvp

            @aidensala use webbrowser with url scheme of the app you want to start, like

            import webbrowser
            url = 'mailto:'
            webbrowser.open(url)
            

            Edit: if the url is an http, script will open a browser in Pythonista. Else, it will open the asked app.

            Edit: but why do you need base64?

            Edit: example, to open the iOS Shortcuts app and run a shortcut named "Make PDF"

            url = 'shortcuts://run-shortcut?name=Make%20PDF'
            
            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB Forums | Contributors