Playmaker Forum

PlayMaker Help & Tips => Android Help => Topic started by: zombie_farm on May 27, 2013, 11:46:15 AM

Title: Open Google Play with button
Post by: zombie_farm on May 27, 2013, 11:46:15 AM
I'm trying to open Google play with a button on touch (in an android app). I tried the open URL script but it just crashed my app when trying to use got the Play store

This is the Java script I could use:
http://forum.unity3d.com/threads/130837-Need-Help-How-to-link-to-my-app-s-Google-Play-listing

Thanks
Title: Re: Open Google Play with button
Post by: A3DStudio on May 28, 2013, 05:04:54 AM
Your app is not crashing with this "open URL" action. You app try to open the web browser on you android device. If you want to display a web browser inside unity you need a plugin like this: http://uwebkit.com/uwebkit/ (http://uwebkit.com/uwebkit/)
Title: Re: Open Google Play with button
Post by: zombie_farm on June 03, 2013, 11:34:53 AM
Hmm sorry I don't quite understand. Your saying that this script isn't the thing that is crashing my app? I don't need it to open inside of Unity.. and I don't have Unity Pro for my android license. :(
I looked at the WWWobject but I don't think thats what I need.
Thanks
Title: Re: Open Google Play with button
Post by: zombie_farm on June 06, 2013, 11:31:36 AM
I put this into a .js file and it does open the store .. but its as soon as the program loads.. it doesn't wait for PM call the method name.


Application.OpenURL("market://details?id=com.FreebordGame.FreebordTheGame");

Title: Re: Open Google Play with button
Post by: Alex Chouls on July 19, 2013, 06:48:48 PM
You should be able to use this Application Open Url action:

http://hutonggames.com/playmakerforum/index.php?topic=1451.msg6212#msg6212

This will let you open the url at the right time.