playMaker

Author Topic: Application Open Url  (Read 13843 times)

craigz

  • Full Member
  • ***
  • Posts: 149
    • View Profile
    • Haven Made
Re: Application Open Url
« Reply #15 on: May 01, 2017, 03:50:19 AM »
Any idea of how to get this working for Mac? :)

-craigz

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 13638
  • Official Playmaker Support
    • View Profile
Re: Application Open Url
« Reply #16 on: May 02, 2017, 01:53:56 AM »
Hi,

 What url are you trying to reach?

 Bye,

 Jean

craigz

  • Full Member
  • ***
  • Posts: 149
    • View Profile
    • Haven Made
Re: Application Open Url
« Reply #17 on: May 02, 2017, 02:34:41 PM »
Ah! Clarification!

I've been using this primarily for its application navigation (works fine in windows). I'm trying to open up a specific folder path in Finder. Not sure if it's a OSX limitation though after doing some thread digging?

thanks,

craigz

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 13638
  • Official Playmaker Support
    • View Profile
Re: Application Open Url
« Reply #18 on: May 02, 2017, 10:18:13 PM »
Hi,

 Windows and mac path use a different delimiter, that's why I think. but really if you are using a url scheme delimiter it should be fine, the other thing is that the url doesn't resolve to a file or folder, and that's likely what's happening I guess.

So what is the exact URL you are inputing?

 Bye,

 Jean

craigz

  • Full Member
  • ***
  • Posts: 149
    • View Profile
    • Haven Made
Re: Application Open Url
« Reply #19 on: May 02, 2017, 11:10:03 PM »
Hmm... so I just ran a test for the delimiter issue, I'm grabbing a custom path on windows and the persistent data path for OSX and it looks like it's using the proper forward slash and does finish past the Application Open Url action, but doesnt actually open the folder in finder at all :/

Working Windows Path:
C:\Users\User\Documents\My Games\warcube\gifs

Failing OSX Path:
/Users/User/Library/Application Support/Haven Made/Warcube/gifs

Any other thoughts? :/

-craigz

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 13638
  • Official Playmaker Support
    • View Profile
Re: Application Open Url
« Reply #20 on: May 03, 2017, 01:18:16 AM »
Hi,

 yep, that doesn't work for me neither, likely because it's inside the Library folder.

On windows you are on an open folder ( documents), but here you are trying to reach internal stuff, maybe that's the problem.

 Bye,

 Jean
 

strongarm27

  • Playmaker Newbie
  • *
  • Posts: 6
    • View Profile
Re: Application Open Url
« Reply #21 on: October 19, 2018, 12:16:56 PM »
I have used this script for years but with the changes to unity in 2017 it no longer works.
Since the web player is no longer supported it gives a error. I always used it in my apps to link to my website. It worked perfectly for that. I never used the web builds I only used it in android and iOS.  Seems OpenUrl should still function if it didn't reference the web build.  Any chance of a update to work with unity 2018.  I am struggling to find a replacement for this.  Thanks for any help you can give.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 13638
  • Official Playmaker Support
    • View Profile
Re: Application Open Url
« Reply #22 on: October 29, 2018, 02:41:23 AM »
Hi,

 I just tested and the version available on the ecosystem works for me in 2018.3

 can you get it again? else, what error do you have exactly?

Bye,

 Jean

iikii

  • Junior Playmaker
  • **
  • Posts: 55
    • View Profile
Re: Application Open Url
« Reply #23 on: December 01, 2018, 08:33:15 AM »
Hi, the action "application open url" doesn't open a new tab in a webgl game.

Any solution to this one? I am using unity 2017.1

thanks

Updated
Fixed it by replacing the last line of code with 'Application.ExternalEval' but this only works in the build version. If you tested it inside the editor, nothing happens.
« Last Edit: December 01, 2018, 10:13:51 PM by iikii »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 13638
  • Official Playmaker Support
    • View Profile
Re: Application Open Url
« Reply #24 on: December 02, 2018, 10:42:07 PM »
Hi,

 It's tricky, but I think this could work: https://github.com/valyard/UnityWebGLOpenLink

Let me know if this work, I'll do a custom action to make easier.

Else, I would actually try to implement a javascript method inside the webpage that hosts the Unity webgl game and from Unity you can talk to that page, then within javascript you can open a new tab. But you need to know how to code for this...


Bye,

 Jean


iikii

  • Junior Playmaker
  • **
  • Posts: 55
    • View Profile
Re: Application Open Url
« Reply #25 on: December 10, 2018, 06:39:57 AM »
Hi,

 It's tricky, but I think this could work: https://github.com/valyard/UnityWebGLOpenLink

Let me know if this work, I'll do a custom action to make easier.

Else, I would actually try to implement a javascript method inside the webpage that hosts the Unity webgl game and from Unity you can talk to that page, then within javascript you can open a new tab. But you need to know how to code for this...


Bye,

 Jean

My coding skills aren't good, it's quite difficult for me to implement nor understand.

If a custom action is possible, it will be very nice ;D

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 13638
  • Official Playmaker Support
    • View Profile
Re: Application Open Url
« Reply #26 on: December 12, 2018, 01:36:32 AM »
Hi,

 ok, I'll work on this. can you bump me early next week? I won't have time this week.

 Bye

 Jean