App messages while in background

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Pistris
Posts: 148
Joined: Mon Jul 20, 2015 2:40 am

App messages while in background

Post by Pistris » Tue Aug 18, 2015 12:46 am

I was wondering what happens to the app when i press the home button

does it keeps running in the background?
what messages it sends when i click on the app again?

thanks

gpb01
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Sat Jun 04, 2011 5:41 pm

Re: App messages while in background

Post by gpb01 » Tue Aug 18, 2015 6:40 am

Livecode App completely close when you go "home" or you switch to another App ("UIApplicationExitsOnSuspend" in the App Settings.pList is "true").

You can try to modify the different pList (inside Livecode you will find one for each version of iOS) to set the "key" to "false" BUT is NOT supported/encouraged by RunRev and can create problems (although I have done this many times without any problem).

If you want to catch the iOS messages ... there is a Monte mergExt external for that: "mergBgTask"

Guglielmo

Pistris
Posts: 148
Joined: Mon Jul 20, 2015 2:40 am

Re: App messages while in background

Post by Pistris » Tue Aug 18, 2015 5:22 pm

Can you elaborate on the sort of problems it can create?

thanks

gpb01
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Sat Jun 04, 2011 5:41 pm

Re: App messages while in background

Post by gpb01 » Tue Aug 18, 2015 6:11 pm

... never understood well :D

I think there are problems when using "wait" statement, but really not clear.

If you do some search on the forum, probably you will find few threads speaking about iOS background tasks ;)

Guglielmo

Pistris
Posts: 148
Joined: Mon Jul 20, 2015 2:40 am

Re: App messages while in background

Post by Pistris » Tue Aug 18, 2015 7:00 pm

Thankyou Guglielmo

I think am gonna buy the MergExt suite of externals
they look very usefull

gpb01
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Sat Jun 04, 2011 5:41 pm

Re: App messages while in background

Post by gpb01 » Wed Aug 19, 2015 3:07 pm

Pistris wrote: I think am gonna buy the MergExt suite of externals
they look very useful
Totally agree with you ...
... I used/use it with satisfaction for several years ;)

Guglielmo

Post Reply