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.

    2 Mal editiert, zuletzt von bhh (3. März 2020 um 22:59)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!