playMaker

Author Topic: Open Google Play with button  (Read 8496 times)

zombie_farm

  • Playmaker Newbie
  • *
  • Posts: 39
Open Google Play with button
« 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
« Last Edit: May 27, 2013, 12:31:48 PM by zombie_farm »

A3DStudio

  • Playmaker Newbie
  • *
  • Posts: 43
    • A3DStudio
Re: Open Google Play with button
« Reply #1 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/

zombie_farm

  • Playmaker Newbie
  • *
  • Posts: 39
Re: Open Google Play with button
« Reply #2 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

zombie_farm

  • Playmaker Newbie
  • *
  • Posts: 39
Re: Open Google Play with button
« Reply #3 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");

« Last Edit: June 14, 2013, 02:43:47 PM by zombie_farm »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Open Google Play with button
« Reply #4 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.