Hi,
The "Instant games" plugin has an "Is available" condition to check if we run on Instant games. How can I find out that I'm running in NW.js / Browser / Mobile?
Why?
In case of browser, the browser's language detection is perfect.
In case of NW.js, the language seems not to be detected (my OS language is Hungarian, but Browser.language returns English in NW.js. Thus I would like to show a language selector if run in NW.js.
As I develop the game, I would like to export it to mobile too, and might need platform specific code there as well.
The question again: How can I find out that I'm running in NW.js / Browser / Mobile?