Is there a way to check if Game Network is supported in the platform?

I have a button in my main menu that takes the user to the gameNetwork leaderboards. I want to hide this button on platforms that don’t have support for achievements. Is there a way to check this?

Thanks,

George

Hi George,

Which gameNetwork service are you using? Apple GameCenter, Google Play Game Services, or both depending on the platform? How are you handling the overall implementation?

Thanks,

Brent

Hi Brent, 

I’m currently only supporting Apple GameCenter and Google Play Game Services. My app was crashing when I ran it in a Kindle Fire. So, I ended up checking like this:

function M.isSupported()   local target = system.getInfo("targetAppStore")   return target == "apple" or target == "google" end

This is working well, so I guess this thread can be closed, unless you have any useful observations.

Thanks!

George

Hi George,

Which gameNetwork service are you using? Apple GameCenter, Google Play Game Services, or both depending on the platform? How are you handling the overall implementation?

Thanks,

Brent

Hi Brent, 

I’m currently only supporting Apple GameCenter and Google Play Game Services. My app was crashing when I ran it in a Kindle Fire. So, I ended up checking like this:

function M.isSupported()   local target = system.getInfo("targetAppStore")   return target == "apple" or target == "google" end

This is working well, so I guess this thread can be closed, unless you have any useful observations.

Thanks!

George