How to detect if Android native or Android web browser?

Hello,

My game has an exit button that works if Android native only.
Web browsers dont require an exit button.
sys.os and OS_ANDROID are not enough, they detect Android even if under a Web browser or an APK.

Have you tried cc.sys.isNative or cc.sys.isBrowser?

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Thanks, it works on CC 3.0 also.