playMaker

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

kad

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Run playmaker action when screen is locked on ios
« on: February 26, 2019, 03: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: 4116
    • View Profile
    • jinxtergames
Re: Run playmaker action when screen is locked on ios
« Reply #1 on: February 26, 2019, 07: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
    • View Profile
Re: Run playmaker action when screen is locked on ios
« Reply #2 on: February 27, 2019, 10:17:14 AM »
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: 4116
    • View Profile
    • jinxtergames
Re: Run playmaker action when screen is locked on ios
« Reply #3 on: February 27, 2019, 11:05:50 PM »
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