playMaker

Author Topic: Application Open Url  (Read 26974 times)

craigz

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

-craigz

jeanfabre

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

 What url are you trying to reach?

 Bye,

 Jean

craigz

  • Beta Group
  • Full Member
  • *
  • Posts: 234
    • Haven Made
Re: Application Open Url
« Reply #17 on: May 02, 2017, 05: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: 15500
  • Official Playmaker Support
Re: Application Open Url
« Reply #18 on: May 03, 2017, 01:18:13 AM »
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

  • Beta Group
  • Full Member
  • *
  • Posts: 234
    • Haven Made
Re: Application Open Url
« Reply #19 on: May 03, 2017, 02:10:03 AM »
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: 15500
  • Official Playmaker Support
Re: Application Open Url
« Reply #20 on: May 03, 2017, 04: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
Re: Application Open Url
« Reply #21 on: October 19, 2018, 03: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: 15500
  • Official Playmaker Support
Re: Application Open Url
« Reply #22 on: October 29, 2018, 05: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

  • Full Member
  • ***
  • Posts: 137
  • Lonely developer
    • Patreon
Re: Application Open Url
« Reply #23 on: December 01, 2018, 10: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 02, 2018, 12:13:51 AM by iikii »
Support me on Patreon for free adventure games and development insights - https://www.patreon.com/koexstudio

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Application Open Url
« Reply #24 on: December 03, 2018, 12:42:07 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


IIKII

  • Full Member
  • ***
  • Posts: 137
  • Lonely developer
    • Patreon
Re: Application Open Url
« Reply #25 on: December 10, 2018, 08: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
Support me on Patreon for free adventure games and development insights - https://www.patreon.com/koexstudio

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Application Open Url
« Reply #26 on: December 12, 2018, 03: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

fromfame

  • Junior Playmaker
  • **
  • Posts: 78
  • Sloppy PM Veteran
Re: Application Open Url
« Reply #27 on: January 01, 2021, 03:41:04 PM »
Bump