Sie sind nicht angemeldet.

  • »jeromebg« ist der Autor dieses Themas

Beiträge: 1 120

Wohnort: Angers - France

Beruf: 360 experiences creator

  • Nachricht senden

1

Dienstag, 22. Dezember 2020, 14:41

iPhone users please help ;)

Hi,
Can iPhone users test if wakelock works on this VR game ?
Game is not finished yet, but seems wakelock is not reliable on iPhones (according to the client) and I don't have an iPhone to test.
I only have an iPad and wakelock doesn't work here.

Many thanx !

2

Mittwoch, 23. Dezember 2020, 05:53

@jeromebg

I use iPhone X
I did not find any problems, it has been 5 minutes and the screen has not turned off

  • »jeromebg« ist der Autor dieses Themas

Beiträge: 1 120

Wohnort: Angers - France

Beruf: 360 experiences creator

  • Nachricht senden

3

Mittwoch, 23. Dezember 2020, 15:28

Thx for trying panoyun !
Strange, client still reports that wakelock doesn't work on first load with empty cache, and works as expected if he refresh the page...
Any clue on this ?
Thx !

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

4

Mittwoch, 23. Dezember 2020, 15:54

Hi Jerome,

i did some more tests.
it is ugly..
the iPhone detects if there is 'attention'.
this 'attention' is not triggered by moving the device but actually looking at it( or touching it i suppose).
(my own conclusion) .. and it also says exactly that in the description of the 'automatic lock'.

So.. i would say.. cardboard and iphone is a worthless combination at the moment.
I tested this, again, a few times with this new insight.
When i visit your nice game.. visit a pano.. then put the iPhone away.. it goes to sleep/dim.. then turn the iphone on all axis .. nothing happens.. the dimm and lock continue..
When i do the same but hold it in my hand without touching the screen it stays good..
Face recognition/attention..

sorry.. i think this is bad news for all of us at the moment.

Hope there will be a fix..
Good christmas wishes from Holland!
Tuur *thumbsup*
'

  • »jeromebg« ist der Autor dieses Themas

Beiträge: 1 120

Wohnort: Angers - France

Beruf: 360 experiences creator

  • Nachricht senden

5

Mittwoch, 23. Dezember 2020, 16:13

Thanks a lot for testing Tuur, you're always a great help !
Hope Klaus could find a workaround, or this project might be dead before it started...

6

Mittwoch, 23. Dezember 2020, 17:31

sigh... how we love apple ...

here iphone 7, iOS 14.3
i went to the saudiarabia scene, touched to start the "music" and let it on the table... it went dark after a short while.

@panoyun : iphone x, which iOS ?
@tuur : which iphone, iOS ?

*mellow*

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

8

Donnerstag, 24. Dezember 2020, 02:47

iphone x
14.2

  • »jeromebg« ist der Autor dieses Themas

Beiträge: 1 120

Wohnort: Angers - France

Beruf: 360 experiences creator

  • Nachricht senden

9

Sonntag, 3. Januar 2021, 18:58

Ok, I bought an old iphone (6S) to test, IOS 14.3.
On first load (my tour or webvr example on krpano website) wakelock doesn't work, screen goes black, but on second load (you have to refresh the page) then wakelock works as expected...

Klaus any clue on how to solve this ?

  • »jeromebg« ist der Autor dieses Themas

Beiträge: 1 120

Wohnort: Angers - France

Beruf: 360 experiences creator

  • Nachricht senden

10

Montag, 4. Januar 2021, 09:17

After more test it looks the problem is related to motion and orientation access authorisation ?
If it's the first time to activate webvr for a website safari ask if you want to enable motion and orientation access, in that case wakelock doesn't work on first load.
Once you enabled motion and orientation access for a domain then wakelock works for all webvr of that domain.
A workaround could be to refresh page when user enables motion and orientation access ? but is there an api for that ?

11

Montag, 4. Januar 2021, 11:04

Hi,

I will have a look...

The wakelock hack works by playing a small hidden video and should prevent the Safari browser from letting the device sleep.

To start that video a touch anywhere is required and krpano will automatically wait and use any touch on the screen to do that.

The 'wakelock hack' starts when entering the VR mode, so maybe a touch on the screen is something missing...

I don't see a reason why the iOS gyro permission request should be involved here, but as written I will have a look.

Best regards,
Klaus

  • »jeromebg« ist der Autor dieses Themas

Beiträge: 1 120

Wohnort: Angers - France

Beruf: 360 experiences creator

  • Nachricht senden

12

Montag, 4. Januar 2021, 11:08

Thx for looking Klaus !
I also don't see why gyro permission has something to do with it, just what I noticed ?

  • »jeromebg« ist der Autor dieses Themas

Beiträge: 1 120

Wohnort: Angers - France

Beruf: 360 experiences creator

  • Nachricht senden

13

Dienstag, 5. Januar 2021, 17:41

Did more test on Safari and Chrome with the same behaviour, and missing touch is not the problem.
With clean cache when you first enter webvr the orientation autorisation is prompted, I accept, gyro works but wakelock doesn't (even if I have touched the screen after entering Webvr mode).
If I reload the url or any url of the same domain then orientation autorisation is not asked anymore and wakelock works as expected.

PLEASE HELP !

THX !

  • »jeromebg« ist der Autor dieses Themas

Beiträge: 1 120

Wohnort: Angers - France

Beruf: 360 experiences creator

  • Nachricht senden

14

Mittwoch, 6. Januar 2021, 11:48

Ok, I found a workaround !
If I call DeviceMotionEvent.requestPermission before entering webvr mode then wakelock works as expected on first load !

15

Samstag, 9. Januar 2021, 11:03

Thanks!
Will check that.