Gamecenter and Google Play Games workaround

aussiefazaussiefaz Member, PRO Posts: 86

Hi guys, I was wondering if there is a way to determine straight away if the device used is either an iOS or an Android device and then have the gamecenter button I've put in the games, instead display a Google Play games button and post to that ones leader boards?

Or do I use the one button across both platforms, and have them post to both leader boards at same time?

Download UfoBlaster on the iTunes store

Best Answer

  • jonmulcahyjonmulcahy Posts: 10,408
    Accepted Answer

    @aussiefaz said:
    jonmulcahy‌ so when you say creating some booleans at the beginning for each device.

    Is there a way that those booleans can detect what we device we've published it for when we click on generate?

    I may have missed something in what Ive learnt so far about that happening.

    there is no current way to auto detect the device right now. When I am publishing to iOS, I enable the booleans manually and hit publish in the creator. When I want to make a build for amazon, I'll turn off the iOS booleans and then trigger the android ones and hit publish again. etc.

Answers

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408

    we don't have access to the os version information which would make this easier. What I usually do is create a few booleans like iOS/Droid/Kindle/iPad/iPhone etc.

    then before I publish for a particular store I enable that boolean which will turn on selective rules.

    it would be awesome to do it all automatically, but this works for me.

  • aussiefazaussiefaz Member, PRO Posts: 86

    @jonmulcahy‌ so when you say creating some booleans at the beginning for each device.

    Is there a way that those booleans can detect what we device we've published it for when we click on generate?

    I may have missed something in what Ive learnt so far about that happening.

    Download UfoBlaster on the iTunes store

  • aussiefazaussiefaz Member, PRO Posts: 86

    @jonmulcahy‌ Thanks for this

    That make sense. I just need to create a boolean for each device, have them set to true when Im publishing for that device, and control the device related actors with the boolean with that in the true position.

    I think that will work fine. Right now Im showing the iOS banners as transparent in Android so its not a blank white space at top of screen. Doing it this way will mean its not even going to be on the screen.

    Download UfoBlaster on the iTunes store

Sign In or Register to comment.