When working on a new Titanium project I came across a requirement which involved using maps on iOS and Android. Since Google has changed the way the API keys work I couldn't rely on the V1 method which I used in the past. Luckily Titanium provides the ti.map add-on module with perfect documentation on how to set it up for the V2 API keys.
Note: doublecheck if this module isn't already installed in the documented directory, in my case it was already present.
When I was ready to run my code and booted up my Genymotion emulator I got the following error:
[ERROR] : GooglePlayServicesUtil: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
After some research I found out that you don't only need to have the Google Play Services installed with your SDK, but also your target device needs to have the Google Play Services running and Genymotion just doesn't come with this. Determined as ever I went on to search for a solution, that's when I stumbled upon ZeezOnline's blog and found an interesting post on how to get the Google Play Services running on Genymotion http://blog.zeezonline.com/2013/11/install-google-play-on-genymotion-2-0/
The biggest catch with this solution is that you match the Android version with the zip file your download. It's again all pretty well documented so you shouldn't run into any troubles.
As soon as you have the Google Play Store available on your virtual device it's time for the final steps; Open up the Google Play store update the currently installed software and install the Maps app.
Once done you'll be able to run your application on Genymotion with proper Maps support.
Martin is a software engineer and community manager at Ibuildings in the Netherlands. He started programming with PHP and picked up Javascript along the way, he has become very knowledgeable with both in the past decade. He is also doing a lot of mobile development and quickly learned that mastering Javascript was the key to device agnostic success. These days many of his projects using open web technologies are already available using app stores and the web as a distribution channel.