Disable "iPhone" features for Android version

Hi All,

I am creating a new quiz game, and am putting all iPhone features in (gamecenter, IAP, tweet sheet etc).

Now, I am making the app so the screen is dynamic, so that it will be easy to publish to Android.

I want to be able to put in a 'check' in my rules, so that if they are not iPhone then they won't work.

So my question is, does a GS app know if it is on an iPhone or Android?

Thanks,

Best Answer

  • beefy_clyrobeefy_clyro Posts: 5,394
    Accepted Answer
    There is no way to say Android or iPhone ... Possibly a workaround is if screensize = .... then perform ....

Answers

  • mrpacogpmrpacogp Member Posts: 400
    Interesting.
    I`m looking too for anything same as you.
    Maybe is android = true change color alpha to 0 and usable to false.
    How determine if is android? next question.
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    It might be a bit of a hack but couldn't you just make your own global attribute and set it true if you are going to export as Android and false if you are going to export as iOS. Using this attribute to turn on and off various features?
  • kanuvaskanuvas Member Posts: 21
    That is a good work around thanks. If noone knows about how to actually do a check internally, this will have to do.

    Thanks :)
  • SnapFireStudiosSnapFireStudios Member Posts: 1,603
    Well.. I know there are a whole lot of screen sizes for Android devices, but it occurs to me that there are not many for ios. So, if you want something to happen only on android, just make a rule that says: if the screen height or width is not apple standards, then do (behavior).

    I haven't tested anything like this before, but in theory it would work. That is, as long as some android device doesn't have the exact same width and height..

    Good luck,
    - Thomas
  • DanDaMan123DanDaMan123 Member Posts: 216
    @kanuvas are you a pro member or joining soon? otherwise IAP and gamecenter etc won't work
  • kanuvaskanuvas Member Posts: 21
    Yes I am Pro. Thanks all for your comments :)
  • glyniusglynius Member Posts: 231
    so, gamecenter does not work on android? i have to disable it for android version?
    also, what about the ratings? how i should setup the android version to have some kind of rating on their store?
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    I'm pretty sure android just ignores iOS features, but to be safe, just create a boolean called iOS, and wrap your GC/iAd rules in a rule that says when iOS is true, do this

    then when you publish for android just uncheck it.
  • glyniusglynius Member Posts: 231
    I'm pretty sure android just ignores iOS features, but to be safe, just create a boolean called iOS, and wrap your GC/iAd rules in a rule that says when iOS is true, do this

    then when you publish for android just uncheck it.
    thanks, and what about rating?
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    I'm pretty sure android just ignores iOS features, but to be safe, just create a boolean called iOS, and wrap your GC/iAd rules in a rule that says when iOS is true, do this

    then when you publish for android just uncheck it.
    thanks, and what about rating?
    Since that is just a URL you'd have to manually disable it. But if you wrap it in the rule

    If iOS is true show rate request then you'll be ok
  • glyniusglynius Member Posts: 231
    Sure, i got this, i will disable all the IOS features but...
    i mean if there is any way to have ratings on android stores.
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    Sure, i got this, i will disable all the IOS features but...
    i mean if there is any way to have ratings on android stores.
    You can link to the game page I think. They can rate from there.
  • glyniusglynius Member Posts: 231
    Sure, i got this, i will disable all the IOS features but...
    i mean if there is any way to have ratings on android stores.
    You can link to the game page I think. They can rate from there.
    ok, thanks for your help man
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Like @jonmulchay has said just wrap anything you want disabled in a rule a Boolean. You cannot use the same exact build for android and iOS so you will have to do a second publishing process for iOS just make sure you check or uncheck the Boolean appropriately before uploading and publishing.
Sign In or Register to comment.