Page 2 of 4

Geolocation bug? - both onsuccess and onfail events are executed

Posted: Tue Sep 06, 2016 2:45 pm
by Serhii Kulibaba

Hello,

Please change the URL of the app test preview from http to https


Geolocation bug? - both onsuccess and onfail events are executed

Posted: Tue Sep 06, 2016 3:39 pm
by Ole Henrik Oftedal

Yes. Sorry. No change.

Image


Geolocation bug? - both onsuccess and onfail events are executed

Posted: Wed Sep 07, 2016 8:12 am
by Ole Henrik Oftedal

Hi again!

Are you here to help?

I am trying to make it more easy for you.

The solution is now placed on a real https server.

you can try it from this site

https://timeflex.no/geolocationbug


Geolocation bug? - both onsuccess and onfail events are executed

Posted: Wed Sep 07, 2016 12:22 pm
by Illya Stepanov

Hello -

With your provided link it is works. Please expand the details what exactly isn't working and exact steps to reproduce the behavior.


Geolocation bug? - both onsuccess and onfail events are executed

Posted: Wed Sep 07, 2016 2:42 pm
by Ole Henrik Oftedal

Please read the whole case. Look in the problem description on the top.

"
If I invoke the service from Firefox (ver 48.0.2.6079 (Latest I think for windows)) then both onsuccess and onfail events are fired in most cases (!).
"

I have made it very easy you. Just hit the button a couple of times.

You can reproduce it on PC, Mac or Phone.

I was told from you to use Firefox and not Chrome. It seems to work in Chrome but then you need https.


Geolocation bug? - both onsuccess and onfail events are executed

Posted: Thu Sep 08, 2016 7:08 pm
by Serhii Kulibaba

Could you remove a frame on that app test https://docs.appery.io/docs/testingan... ?


Geolocation bug? - both onsuccess and onfail events are executed

Posted: Thu Sep 08, 2016 9:00 pm
by Ole Henrik Oftedal

Excuse me? I have tried with frame and without. The same problem. Have you reproduced the problem in Firefox? Please let me know. I have now installed a fresh win 7 with FF and tried easily to reproduce the problem. It should be easily reproducable.

It you want to change my "geolocationbug" app. Please go ahead. Do whatever you like with it. This app is only for demonstrating for you the problem I have.


Geolocation bug? - both onsuccess and onfail events are executed

Posted: Mon Sep 12, 2016 7:17 am
by Ole Henrik Oftedal

Why are you not helping me anymore?


Geolocation bug? - both onsuccess and onfail events are executed

Posted: Mon Sep 12, 2016 7:21 am
by Evgene Karachevtsev

Hello Ole,

We're still working on your issue, there was a delay due to the weekend. We'll get back to you with the update soon.


Geolocation bug? - both onsuccess and onfail events are executed

Posted: Mon Sep 12, 2016 7:57 am
by Ole Henrik Oftedal

I think there is a bug in the builder/geolocation service.

When using geolocation we must quickly kill det implicit timer in the onsuccess event.

If we don't, then we get first an onsuccess event and then it fails later when the timeout periode ends (producing a onerror event also).