Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: drown on November 17, 2016, 05:19:56 PM
-
Hello Playmaker Community!
I am working on an app that is based on GPS location and uses http://geojson.io/ to determinate wether the user is in a designated area or not.
The core functionlaity of this project heavily depends on "Location Info" , therefore the action "Device/Get Location Info" is used to detect the Latitude and Longitude.
I start with an init state that starts the location service. I want it to try for 30 seconds - if it fails it pauses and restarts the initialization. This is the State that is supposed to do it :
(http://puu.sh/slKjj/834d924466.png)
The problem is that the State instantly triggers the "Location Services Failed" transition. I tried it with a GPS faker, ran it via Unity Remote 5 on a Lolipop Android device and built the app and gave it permission to use the Location services - to no avail.
The next step would be to save the Location info and sync it to geojson and detect if they match a certain area - but it never reaches this state :
(http://puu.sh/slKbx/3a1e464396.png)
I am desperately trying to figure out what could be causing it - I tried the updated actions i found on the forum somewhere (a 2013 post) , but I doubt that they are not updated in the Playmaker 1.8.3 I am using in my project.
Am I missing something Action-wise ? Or is it some project setting I am missing out on ?
Any kind of help would be greatly appreciated!
Best Regards
Alex
-
Hi,
Difficult to say without looking at your state actions.
maybe you can pm me with this scene and instructions and I'll have a look.
Bye,
Jean
-
They are on the screenshots but they dont show on this forum since they are wider than the board's width :P .
The actions are really just "Startup Location Services" and "Get Location Info".
If that does not help I will pack up the project once I am at home. Thanks in advance!
-
Oh wow. I solved it. I treated the "Get Location" function as a function that auto updates. What a stupid mistake. Sorry for the bothering, it now works perfectly fine!