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.


    IOS Background execution

    Pythonista
    2
    3
    2551
    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.
    • ihf
      ihf last edited by ihf

      I would just like to confirm that it is NOT possible for a Pythonista script to run in the background such that it is running when the screen is off or when it is on but not showing Pythonista?

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

        I think Pythonista scripts can keep running in the background for a short while, until iOS decides to suspend/quit Pythonista. But in general or for a long time it's not possible.

        There was a trick that worked during the beta where you could let Pythonista play a silent audio file on repeat, so that iOS would treat it like a music/audio player, which would let the app run forever in the background. I'm not sure if that still works in the App Store version though, or what exactly needed to be done to make it work. (I think the built-in sound module was not enough and you had to use objc_util to play the sound using specific APIs.)

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

          Thanks. That is what I recall but I wanted to make sure that was still the case. As an aside, it is really unfortunate that a program like Tasker (Android only) is impossible under IOS due to Apple's restrictive policies.

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