Sie sind nicht angemeldet.

Joel

Anfänger

  • »Joel« ist der Autor dieses Themas

Beiträge: 8

Wohnort: Innsbruck, Austria

Beruf: Interaction- and webdesigner

  • Nachricht senden

1

Dienstag, 12. Februar 2019, 11:14

accelerometer/gyroscope sensor access disabled -> will Cardboard VR still work on iOS 12.2?

Hi Klaus,

Zitat

According to an article discussing iOS 12.2 beta features:

> Accessing sensor APIs is now disabled by default, so no accelerometer, gyroscope or magnetometer APIs are working unless the user enables a Settings option under “Safari”
Does this mean Cardboard VR mode won't work anymore in iOS 12.2? *blink*

I have read through this discussion: https://github.com/w3c/deviceorientation…mment-458464696
Which sounds like they might create a popup asking the user for permissions, but perhaps not in time.

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

2

Dienstag, 12. Februar 2019, 11:45

Hi,

i think it means that the user first needs to enable the setting before it can use gyro etc..
Which is a nasty and very users unfriendly thing.
I really hope there can be a workaround.
I do quite much government to public information tours for landscape planning stuff, and i'm afraid all these people need to first change these settings on their device, which could stop them to visit.
A pop-up could be best solution for this stupid thing, when it changes the setting by one click. And i hope the pop-up is not to just say that the user needs to go there and there and do this this and this to change it.. *cursing*

Tuur *thumbsup*

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

3

Donnerstag, 14. Februar 2019, 18:09

i updated to latest OSX and see some things changed.
I use space bar for play pause in 360 video .. also to test in fake webvr mode.
Now it suddenly change the hlookat to 0 every time i click spacebar.

also in a bit more complex situation when i exit vr on desktop it tweens automatically vlookat to 0... wondering why and also why i don't see this when i only use standard webvr xml...


edit: i narrowed it down and of course some is my own 'sloppy-ness' but when i use spacebar when in fake vr to play pause on desktop it sets on every key hit the hlookat to 0.. Why is that? i'm quite sure it was not like that before my OSX update..

It was not like this..
Tuur *thumbsup*

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Tuur« (14. Februar 2019, 23:10)


4

Freitag, 15. Februar 2019, 09:34

Morning!
I'm also really worried about this! Just read about it in macrumors and looked for a krpano forum post immediately...
This would probably render a lot of tours out there useless (on iOS) and we would have to update all of them *cursing*
As i know apple, they won't make it as simple as providing a popup to allow people to bypass this new "security" "feature"...

5

Freitag, 15. Februar 2019, 16:18

Hi,

in the current iOS 12.2 beta versions the gyro support is disabled by default in Safari.

The only way to enable it at the moment would be:
[Homescreen] => [Settings] => [Safari] => enable the motion/orientation access setting

That means that feature will be basically not available for common users with that iOS version.
This affects the gyro plugin and the webvr plugin.

A better solution (beside of keeping to allow sensor usage for the main page) would be for sure a permission dialog to ask the user if the page is allowed to use the gyroscope/acceleration sensors, but I doubt that Apple will do that in that version. Maybe and hopefully in later iOS versions...

One good thing is that other iOS browsers - e.g. Firefox or Chrome are unaffected by that Safari change and are still allowing gyroscope/acceleration sensor usage by default.


edit: i narrowed it down and of course some is my own 'sloppy-ness' but when i use spacebar when in fake vr to play pause on desktop it sets on every key hit the hlookat to 0.. Why is that? i'm quite sure it was not like that before my OSX update..
Sorry, but that doesn't seem to be related - the webvr.xml was always using the SPACE key for 'reseting' the sensor (setting back to 0). Have a look in the webvr.xml for this line and remove it:

Quellcode

1
onkeydown="if(webvr AND webvr.isenabled AND keycode==32, webvr.resetSensor() );"


Best regards,
Klaus

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

6

Samstag, 16. Februar 2019, 08:46

Thanks Klaus,
I totally forgot or missed that...
There is so much to it.
I’m glad that that is the issue and not something else.

Tuur *thumbsup*

7

Sonntag, 17. Februar 2019, 14:26

hm, would it be possible for the gyro plugin to do

1) a device check for ios 12.2+
2) detect if the setting is disabled (if gyro data is delivered)
3) provide a status variable?

then we could check easily and show a simple js alert,
just for the case the setting is off on a 12.2+ ios device

8

Sonntag, 17. Februar 2019, 20:32

Hi,

yes, e.g. in the 'onunavailable' event check for iOS 12.2 and then still do the 'onavailable' code to e.g. show the gyro button:

Quellcode

1
onunavailable="if(iosversion GE 12.2, onavailable());"


and then in your gyro enabling code (e.g. a button) check for 'isavailable' and again the iOS version and show some information about this case (e.g. how to enable it or to use an other browser):

Quellcode

1
2
3
<layer name="gyrobutton" ... 
       onclick="if(isavailable == false AND iosversion GE 12.2, ...show some info... ); 
       ...


See here for more:
https://krpano.com/plugins/gyro2/#stateattributes
https://krpano.com/plugins/gyro2/#events

Best regards,
Klaus

9

Freitag, 29. März 2019, 15:28

i just updated to 12.2 on my iphone 7

i enabled the motion/orientation access setting,
but the gyro still does NOT work here!

tried in normal / private browsing,
restarted my phone,
nothing...

my gyro is dead

*confused*

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

10

Freitag, 29. März 2019, 15:30

It seems that it also should be on https!!
And then you still need to manually activate it.
Also for chrome etc on ios.
I didn’t update yet.

Mannnn
I go look for another job.

F***** Apple!
Tuur *cursing*

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

12

Freitag, 29. März 2019, 15:39

Not fully sure, but what i read and understand... yes

*cursing* *thumbdown*
Tuur

13

Freitag, 29. März 2019, 15:48

as a recap for others :

on iOS 12.2+ devices you will need
[Homescreen] --> [Settings] --> [Safari] --> enable the motion/orientation access setting

as users won't know, you'll need a ios 12.2+ detection and then display something like...
" for full experience please enable
the motion/orientation access setting
in home / settings / safari "

HTTPS must be enabled for the server, or it won't work :/

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

14

Freitag, 29. März 2019, 15:48

When i change to https and type http, does it go automatically to https?

Tuur *angry*

15

Freitag, 29. März 2019, 15:51

When i change to https and type http, does it go automatically to https?

in my case it does, but that might depend on your hosting provider (?)

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

16

Freitag, 29. März 2019, 15:53

Mmm..we’ll see
But even then..
Pffffffff

Tuur *angry*

17

Freitag, 29. März 2019, 22:08

Hi,

as a recap for others :

on iOS 12.2+ devices you will need
[Homescreen] --> [Settings] --> [Safari] --> enable the motion/orientation access setting

as users won't know, you'll need a ios 12.2+ detection and then display something like...
" for full experience please enable
the motion/orientation access setting
in home / settings / safari "

HTTPS must be enabled for the server, or it won't work :/

Right:
- it's disabled by default
- the user needs to manually enable it
- and it's only HTTPS only now...


Unfortunately (but as expected) Apple has released iOS 12.2 with that stupid behavior, but there is hope for future iOS versions:

The W3C is discussing about a permission-API for the sensor usage - then the user could be directly asked if he would like to allow the sensor usage. That would be much better then generally disabling the usage for everyone. Hopefully Apple will implement that API soon.

You could follow that discussion here:
https://github.com/w3c/deviceorientation/issues/57

Best regards,
Klaus

18

Freitag, 29. März 2019, 23:54

thanks for the heads-up klaus...

additionally, i noticed that you cant just return to the tour after changing the setting.
you need to reload the page.¨

i now do the gyro/webvr button handling in the onavailable/unavailable events
and i implemented a notice for ios 12.2+ users

hopefully this can be done a bit more user friendly in the future,
but i doubt that it will change soon.

Dieser Beitrag wurde bereits 3 mal editiert, zuletzt von »indexofrefraction« (30. März 2019, 10:45)


19

Samstag, 6. April 2019, 03:37

I found that it must use https protocol!

After upgraded to ios12.2, I found that it must use https protocol in safari or other browers, nor the gyro can't not be working.

20

Dienstag, 9. April 2019, 18:34

Also, if you have a previous link saved to the iOS desktop as a "web app" with an http url, you will need to recreate that from a new safari page even with https redirects enabled.