Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Gideros and OS type — Gideros Forum

Gideros and OS type

beunnbeunn Member
edited August 2013 in General questions
Hello,

I just want to know if there is a way to get the os type (iOS or Android) because I had StoreKit and Google Billing and I want to create a variable which can tell if iOS or Android and launch the good Store when I click my Shop's button.

Thanks
Beunn

Comments

  • Oh, sorry if I create a topic for that, I found it : application:getDeviceInfo()

    I need to read the documentation...

    Beunn
  • ar2rsawseenar2rsawseen Maintainer
    edited August 2013 Accepted Answer
    Sure
    local osType = application:getDeviceInfo()
     
    if osType == "Android" then
        --load google billing
    elseif osType == "iOS" then
        --load store kit
    end
    Ninjajed by the OP :O

    :D
  • "by the OP " ? ;)

    It works ! Thanks :)
Sign In or Register to comment.