[Solved]OpenURL in mobile?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Arisae
Regular
Posts: 32
Joined: Wed Dec 24, 2014 5:39 pm
Completed: Discouraged Workers/YGGDRASIL JIGSAW PUZZLE
Projects: Working on some projects
Organization: YGGDRASIL STUDIO
Github: YGGDRASIL-STUDIO
itch: yggdrasilstudio
Location: Korea, Republic of.
Contact:

[Solved]OpenURL in mobile?

#1 Post by Arisae » Sat Feb 21, 2015 6:39 pm

Dear, Ren'Py people!
Like subject, i want to openurl link in mobile device(iOS, Android, BlackBerry).
But as we know, OpenUrl is not working.
If anyone know the other variable with Python, please let me know the ways or reference url.
Thanks for your read this topic and sorry for my bad english.
Last edited by Arisae on Sun Feb 22, 2015 4:41 am, edited 1 time in total.

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: OpenURL in mobile?

#2 Post by PyTom » Sat Feb 21, 2015 8:34 pm

It should work on Android and iOS. Ren'Py isn't supported on BlackBerry.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
Arisae
Regular
Posts: 32
Joined: Wed Dec 24, 2014 5:39 pm
Completed: Discouraged Workers/YGGDRASIL JIGSAW PUZZLE
Projects: Working on some projects
Organization: YGGDRASIL STUDIO
Github: YGGDRASIL-STUDIO
itch: yggdrasilstudio
Location: Korea, Republic of.
Contact:

Re: OpenURL in mobile?

#3 Post by Arisae » Sun Feb 22, 2015 4:03 am

PyTom wrote:It should work on Android and iOS. Ren'Py isn't supported on BlackBerry.
Yes, i know BlackBerry is not supported. But i can ported BlackBerry, it was simple way.

But, PyTom. I've also tested it yesterday on Android, OpenUrl is not working.
Ren'Py 6.99, Test device was MB525(Motorola Defy, Jelly Bean) and Samsung Galaxy note3(Lollipop). Both did not work.

User avatar
Arisae
Regular
Posts: 32
Joined: Wed Dec 24, 2014 5:39 pm
Completed: Discouraged Workers/YGGDRASIL JIGSAW PUZZLE
Projects: Working on some projects
Organization: YGGDRASIL STUDIO
Github: YGGDRASIL-STUDIO
itch: yggdrasilstudio
Location: Korea, Republic of.
Contact:

Re: OpenURL in mobile?

#4 Post by Arisae » Sun Feb 22, 2015 4:41 am

OMG, i'm stupid man. I've missed android configure. Sorry to PyTom, i was waste your precious lifetime.

Jibus
Regular
Posts: 135
Joined: Tue May 26, 2015 9:45 am
Contact:

Re: [Solved]OpenURL in mobile?

#5 Post by Jibus » Mon Jul 27, 2015 5:14 pm

OpenURL() does not work for me on ios, i have used pyobjus :

Code: Select all

 init python:
    def OpenUrlIos( url ):
        UIApplication = pyobjus.autoclass("UIApplication")
        NSURL = pyobjus.autoclass("NSURL")
        NSString = pyobjus.autoclass('NSString')
        objc_str = pyobjus.objc_str
        nsurl = NSURL.alloc().initWithString_(objc_str(url))
        UIApplication.sharedApplication().openURL_(nsurl)
Problem : i use the function on a imagebutton in a screen and each time, i open the application, it launch directly safari with the url.

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: [Solved]OpenURL in mobile?

#6 Post by PyTom » Mon Jul 27, 2015 5:48 pm

That's not an action.

In 6.99.5, OpenURL should work. You may need to re-create your iOS project to get the latest code.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

Jibus
Regular
Posts: 135
Joined: Tue May 26, 2015 9:45 am
Contact:

Re: [Solved]OpenURL in mobile?

#7 Post by Jibus » Mon Jul 27, 2015 5:58 pm

Yes, but i have the pixelated issue in 6.99.5. Is there a way to define a custom action ?

Post Reply

Who is online

Users browsing this forum: enaielei