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.


    webbrowser.open appex bug?

    Pythonista
    2
    6
    4993
    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.
    • userista
      userista last edited by

      I'm not sure if this is expected behavior but webbrowser.open returns false and doesn't open the URL in the app extension (via console and via script).

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

        https://forum.omz-software.com/topic/1988/launching-pythonista-from-1-6b-app-extension may be relevant. have you tried a webview?

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

          Hmmmm - that's odd. Workflow is able to open a URL from its app extension.

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

            Possibly because it has a Today widget?

            I am wondering if this might be possible via objc_util ( though since the extension is still broken on 32 bit devices I cannot test it), since the enforcement seems to be via review, not kernel.

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

              Actually, maybe this:
              http://stackoverflow.com/a/28037297

              apparently the extension does not support openUrl, but it is still possible to walk up the responder chain to find the UIApplication. This looks doable in objc_util. There is another solution that uses NSClassFromString to get a UIApplication, that might be diable with ctypes...

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

                Sweet! I'll try that - thanks!

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