Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Crash when using application:canOpenUrl() — Gideros Forum

Crash when using application:canOpenUrl()

JesderJesder Member
edited August 2013 in General questions
I'm currently getting "attempt to call method 'canOpenUrl' (a nil value)" when using application:canOpenUrl(url) as per the documentation.

Using application:openUrl(url) works fine however.

I'm running v2013.06.3 using windows and testing on an Android device.

Performing a simply output on Application reveals that canOpenUrl doesn't exist. Is it not on Application?

----
for k,v in pairs(Application) do
print(k)
end

exit
getScaleMode
getDeviceHeight
setLogicalDimensions
getLanguage
getTextureMemoryUsage
getDeviceInfo
getLogicalTranslateY
getScreenDensity
getLogicalScaleX
getLogicalHeight
openUrl
getLogicalWidth
getContentWidth
LANDSCAPE_RIGHT
setScaleMode
setKeepAwake
setFps
getDeviceWidth
getOrientation
setOrientation
PORTRAIT_UPSIDE_DOWN
getFps
getLogicalTranslateX
LANDSCAPE_LEFT
getLocale
vibrate
getAccelerometer
getLogicalScaleY
getBackgroundColor
PORTRAIT
getApiVersion
__index
getContentHeight
setBackgroundColor

Comments

  • ar2rsawseenar2rsawseen Maintainer
    Accepted Answer
    @Jesder just tested it on the latest Gideros player and it works as expected
    print(application:canOpenUrl("<a href="http://giderosmobile.com&quot" rel="nofollow">http://giderosmobile.com&quot</a><img class="emoji" src="http://forum.gideros.rocks/resources/emoji/wink.png" title=";)" alt=";)" height="20" />)
    print out true.

    Are you sure you are using latest player build on your Android phone?
    You can download the latest version from here:
    http://giderosmobile.com/player/

    Likes: Jesder

    +1 -1 (+1 / -0 )Share on Facebook
  • JesderJesder Member
    edited August 2013
    Bingo!

    I must not have updated the player on this device.
Sign In or Register to comment.