[Solved]OpenURL in mobile?
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.
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.
- 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?
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.
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.
- 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?
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(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
- 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?
Yes, i know BlackBerry is not supported. But i can ported BlackBerry, it was simple way.PyTom wrote:It should work on Android and iOS. Ren'Py isn't supported on BlackBerry.
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.
- 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?
OMG, i'm stupid man. I've missed android configure. Sorry to PyTom, i was waste your precious lifetime.
Re: [Solved]OpenURL in mobile?
OpenURL() does not work for me on ios, i have used pyobjus :
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.
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)- 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?
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.
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(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
Re: [Solved]OpenURL in mobile?
Yes, but i have the pixelated issue in 6.99.5. Is there a way to define a custom action ?
Who is online
Users browsing this forum: enaielei