playMaker

Author Topic: Run playmaker action when screen is locked on ios  (Read 2540 times)

kad

  • Playmaker Newbie
  • *
  • Posts: 4
Run playmaker action when screen is locked on ios
« 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.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Run playmaker action when screen is locked on ios
« Reply #1 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.

kad

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Run playmaker action when screen is locked on ios
« Reply #2 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.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Run playmaker action when screen is locked on ios
« Reply #3 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