iPad Pro returning 0 for device.iosversion

  • This was implemented back at 13.1 to open a dialog allowing for the user to request gyro permission. Now on iOS 13.3.1, the iPad is returning 0 for the device.iosversion while my iPhone 10 is returning the correct version. Its really weird, anyone else run into this?

  • Hi,

    maybe your iPad Safari browser is running in Desktop Mode, in this case there are no information about the iOS version available.

    But it is possible to check for device.iosdesktop to know if running in that mode.

    Best regards,
    Klaus

    That was it! Thanks.
    Is there way to determine if the user denied gyro permission? I'd like to tidy up the interface a bit, remove gyro buttons, etc. if so. I didn't see gyro2 functions that look like they would provide this info but I may be missing something. It appears events.gyro_onenable gets called even when it is canceled but that't can't be used for cleanup obviously.

    Thank you.

    Edited 2 times, last by bhh (March 3, 2020 at 10:59 PM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!