Playmaker Forum

PlayMaker Help & Tips => iOS Help => Topic started by: kad on February 26, 2019, 05:12:36 PM

Title: Run playmaker action when screen is locked on ios
Post by: kad on February 26, 2019, 05:12:36 PM
On iOS is it possible to run playmaker actions when the app is in the background or the screen is locked. I need to carry on getting gps data even if the screen is locked.
Title: Re: Run playmaker action when screen is locked on ios
Post by: djaydino on February 26, 2019, 09:08:14 PM
Hi.
If unity can, PlayMaker can :D

I believe that there is an action called Application Run In Background.
to run the app while in background.
Title: Re: Run playmaker action when screen is locked on ios
Post by: kad on February 27, 2019, 12:17:14 PM
Thanks for you reply djaydino. I thought Application Run In Background was just for PC and Mac, not for mobile devices?

I have added all the relevent stuff to to info.plist but my app still wont run in the background which is rather anoying as I need it to grab gps and data from bluetooth device whilst locked.
Title: Re: Run playmaker action when screen is locked on ios
Post by: djaydino on February 28, 2019, 01:05:50 AM
Hi.
I found this in the unity answers :
https://answers.unity.com/questions/58560/run-in-background-for-ios.html

Maybe it can get you in the right direction