Context: I have Been using an iOS python IDE app (Pythonista) to write some simple scripts that periodically executes post/get requests, interprets & analyses these requests and then finally notifies me using builtin iOS notifications.
I have been running these scripts on my phone as I take it everywhere and getting a push notification for this information is highly useful to me.
Problem statement: When I execute a long-running script in Pythonista, and shift the app to the background i.e. my switching to another app or by locking the phone, code execution suspends after a few minutes, effectively making the script redundant for my purposes (code execution and therefore notifications are suspended). This is intended by apple in it's design to allow the system to manage resources and load to prolong battery life (ref: https://developer.apple.com/library/content/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html)
I'm looking for options to bypass (or manage) this restriction in iOS and can range from perhaps another python IDE that has increased permissions in its implementation to jail breaking the phone (but ideally i would like to avoid this).
Thanks guys, just shoot if anyone requires more clarification.
Note: There are other questions on SO that are similiar, but the majority are referring to writing an iOS app from scratch (xcode) so have increased access to permissions handling and background refresh/fetch features, something I don't as I am writing python natively in an iOS IDE.