- Home /
Application.OpenURL not working
I'm trying to get my app to link to my other app using a popup. I have a UI button with the following code linked to its OnClick event:
public void PopupClick(){
Application.OpenURL ("https://play.google.com/store/apps/details?id=com.UltimateStudios.MuffinClicker");
}
I don't know why, but in the editor and on my android phone when I click the button it doesnt open the URL.
Does it do nothing when you click it? Or does it open the wrong link?
Did you throw a Debug.Log on there to make sure your click is actually hooked up correctly?
I just put a debug.log in before the Application.OpenURL code but when I clicked the button the console didnt show any logs.
Ahh i found it i had the wrong public void hooked up to my UI button. thanks for your suggestions!
Answer by sam2k13 · Jan 10, 2015 at 02:21 AM
Try using "market://details?id=com.UltimateStudios.MuffinClicker" instead.
Your answer
Follow this Question
Related Questions
4.6 GUI Text help 1 Answer
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Is there a way to ensure Awake is called in Unit tests? 2 Answers
What is the difference between AndroidJavaClass.Call and AndroidJavaObject.Call 2 Answers
Is there a way to scale everything in my game (GUI, text size, etc.) on Android in Javascript? 2 Answers