Background task execution external for iOS
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Background task execution external for iOS
Hi LiveCoders
This morning Guglielmo emailed me asking if the background task execution external that I had discussed on the developer list a while back was available. RunRev don't officially support apps that don't quit on suspend at the moment so I hadn't released it. After Guglielmo's request I decided to release with a note that it should be considered experimental. It's now available for purchase and download from mergExt for $29 (or as part of the suite). There's still a few weeks left to lock in the current pricing and I plan to release at least one new external every week in that time.
Here's a youtube video of the external in action including how to delete the exits on suspend key from the plist which may be useful to some even without the external: http://youtu.be/8qrnVGJ7lFA
Cheers
Monte
--
M E R Goulding
Software development services
Bespoke application development for vertical markets
mergExt - There's an external for that!
This morning Guglielmo emailed me asking if the background task execution external that I had discussed on the developer list a while back was available. RunRev don't officially support apps that don't quit on suspend at the moment so I hadn't released it. After Guglielmo's request I decided to release with a note that it should be considered experimental. It's now available for purchase and download from mergExt for $29 (or as part of the suite). There's still a few weeks left to lock in the current pricing and I plan to release at least one new external every week in that time.
Here's a youtube video of the external in action including how to delete the exits on suspend key from the plist which may be useful to some even without the external: http://youtu.be/8qrnVGJ7lFA
Cheers
Monte
--
M E R Goulding
Software development services
Bespoke application development for vertical markets
mergExt - There's an external for that!
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
-
- VIP Livecode Opensource Backer
- Posts: 7258
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Background task execution external for iOS
Has anyone actually figured out why suspend isn't supported? If I knew that, I could make intelligent decisions about whether to risk trying it.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Background task execution external for iOS
The main issue is if you have some blocking code running when the app is suspended you won't be able to handle suspend/ resume right. If there's some important data you might want to save that state before starting your blocking code. What I mean by blocking code is something that won't end within a few minutes. Like an answer dialog.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
-
- VIP Livecode Opensource Backer
- Posts: 7258
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Background task execution external for iOS
Thanks Monte, that's good to know. I've thought of altering the plist but wasn't sure what would happen.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Background task execution external for iOS
Thanks Monte for this great topic. Because in my case I can't use the mergBackground, I tried to remove the key from .plist template. All seems to work fine. someone else has already tried it and have any advice or experience to share? I would not cause problems for users of the app ...
Re: Background task execution external for iOS
Guglielmo has an app in the appstore with it removed so he might like to comment here.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
Re: Background task execution external for iOS
It would be interesting to know something more. Hopefully he see the discussion. Meanwhile I am trying to figure out which messages are sent when the app go in background and when come back in foregrand, if any. This would let me handle situations where there was running code.
OK, these don't work on iOS:
OK, these don't work on iOS:
Code: Select all
on suspend
set the label of button "suspended" of card "main" to the time
end suspend
on resume
set the label of button "resumed" of card "main" to the time
end resume
Re: Background task execution external for iOS
Hi Mag
Take a look at mergNotify... the example scripts were implemented just for this purpose
Cheers
Monte
Take a look at mergNotify... the example scripts were implemented just for this purpose
Cheers
Monte
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
Re: Background task execution external for iOS
Great external indeed. Can I use it to know if the app has gone in bg?monte wrote:Hi Mag
Take a look at mergNotify... the example scripts were implemented just for this purpose
Cheers
Monte
PS
Coff... coff... any news about new minor of mergAV?
Re: Background task execution external for iOS
Use UIApplicationWillResignActive
Sorry, last week slipped away from me. I'll try and get mergAV up today.
Sorry, last week slipped away from me. I'll try and get mergAV up today.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
Re: Background task execution external for iOS
Implemented in my project. It work like a charm, thank you.
PS
Like so much the news on AV, thanks!
PS
Like so much the news on AV, thanks!