Google Play Services running in Unity Editor?

Before I implemented Google Play Services (GPS) I could test 90% of my Android game in the editor. Now that I have GPS I can only test about 50% in the editor. This has drastically decreased my iteration times since the full build and push to device is time consuming. GPS stubs out all its objects in the Editor, but is there a way to somehow get those to run anyway? Like, tricking it to think it’s on an android device? I’m confident there isn’t but you never know, and it doesn’t hurt to ask, right?

Yeah, you can’t test GPS without a device. Having this issue myself, so I made GPS optional. It helps me test the game in the editor, without have it pump out errors or do nothing at all. It also gives users that option if they don’t want to use GPS.

I made my achievements work with or without GPS so I could test them and still give those that opt out, something else to work towards. Leaderboards and cloud saving are disabled so I need a device to actually test those, but they don’t need to be tested that much. When they do its a pain.

I have yet to test it with Unity Remote, to see if that will work. I don’t think it will as it only streams input back to the editor and runs everything from the editor. It only works through USB, which if I’m hooked up I will just push it to the device to truly test it.

By the way how long does your build and push to the device take? With my current game, its around 40s.

40-60 seconds sounds about accurate. And no, it won’t work on Unity Remote as that’s just streaming. Nothing is actually running on the device.

I’ve added some exception catching to my code so I can test in the editor more cleanly. It’s working fine but I really wish I could test the actual GPS in the editor. Oh well.

GPS for Unity may get Windows support(crosses fingers). It only works on Android and iOS right now. That’s why it doesn’t work in the editor. The GPS plug in isn’t fully functional right now, its not even version 1 yet. It still has a way to go before its complete. You can’t even retrieve leaderboard info, so you can make your own custom leaderboards.