Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Geolocation bug? - both onsuccess and onfail events are executed

It works fine on my PC, please look at the attached screenshot: Image

You have to:
change http to https
remove the frame
allow the website to get your current location

These rules are the same for all modern websites

Ole Henrik Oftedal
Posts: 0
Joined: Thu Apr 19, 2012 4:52 pm

Geolocation bug? - both onsuccess and onfail events are executed

Hallo!

Did you hit the button "Button" multiple times?

What is your Firefox version running on what OS?

See here:

Ole. Image

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Geolocation bug? - both onsuccess and onfail events are executed

Please change a request parameter "maximumAge" of the geolocation service to 1000: Image

If it is = 0, the app fires an error

Ole Henrik Oftedal
Posts: 0
Joined: Thu Apr 19, 2012 4:52 pm

Geolocation bug? - both onsuccess and onfail events are executed

I have also tried 0 and 3000 and also 1000. Hit the button more then four times. You wil certainly get an error now.

I have now changed to 1000 like you have instructed. The error still persist (after some time).

Ole.

Ole Henrik Oftedal
Posts: 0
Joined: Thu Apr 19, 2012 4:52 pm

Geolocation bug? - both onsuccess and onfail events are executed

New version 2.0 out
https://timeflex.no/geolocationbug

Check that is says Ver 2.0 - Geolocationbug in the header. If not refresh page.
***New in this version: MaximumAge option is set to 1000.

After hitting "Button" button some times you get an errormessage :-(
(with latest Firefox version on Mac, Android or PC (all os))

Ole Henrik Oftedal
Posts: 0
Joined: Thu Apr 19, 2012 4:52 pm

Geolocation bug? - both onsuccess and onfail events are executed

Hello. Why are you not helping me anymore?
The bug is also there in the new Firefox beta.
Belive it or not. Firefox run on the IPad works fine :-)

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Geolocation bug? - both onsuccess and onfail events are executed

Hi Ole -

Our engineers have tested your case and this works as expected on our side.
And please note that we don't support Firefox beta builds.

Ole Henrik Oftedal
Posts: 0
Joined: Thu Apr 19, 2012 4:52 pm

Geolocation bug? - both onsuccess and onfail events are executed

You havent really tested have you?

And please read the whole case. The beta test was just a digression if you know what that means. I have really given it to you. You have full access to the reproduce App (geolocationbug) and the app is now running on a real https server.

I have tested on more than five devices/computers so far. They nearly all fail (!)

Right now in this minute I have spotted in our office one Lenovo Android and one Windows 10 Lamina tablet (they are seldom used). Their configuration is not altered and config is very much "out of the box".

So I installed Firefox on both. And both of the computers failed (https://timeflex.no/geolocationbug). And I am not suprised.

Do you really want to help? Or do you just want me to bug off. I can do that, but you should really take it serious when one of your Appery components are not working as expected. Next time you will have this bug come back to you and your support situation will be even more stressfull than it is now. And your customer wont, in the long run, tolerate first to make a system for reproducing the error and the next step is to neglect the fact that the components are failing when they obivous are.

And btw. This should be a dialogue. Your engineers have not come back with almost no details of what they have done to test.

If you really mean what your slogan says "We are here to help" and your engineer still cannot understand the case then I invite you to a short Teamviewer session with me so you can see for yourself. But I know you dont have the time for this as you dont have the time to really try to find the problem.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Geolocation bug? - both onsuccess and onfail events are executed

[quote:]
I have tested on more than five devices/computers so far. They nearly all fail (!)
[/quote]

Can you explain how exactly it is fails on your devices? Please expand more details of your test case. Which OS versions these devices running?

I never getting the "Geo failed" on my Firefox browser:
Image

Ole Henrik Oftedal
Posts: 0
Joined: Thu Apr 19, 2012 4:52 pm

Geolocation bug? - both onsuccess and onfail events are executed

1)
Install Firefox on Machine or Device
2)
open https://timeflex.no/geolocationbug

Check that is says Ver 2.0 - Geolocationbug in the header.
***New in this version: MaximumAge option is set to 1000.
3)
After hitting "Button" button some times you get an errormessage :-(
(Hitting the other button is my suggestion to a workaround so don't use this.)
This is an alertbox saying "Geolocation failed". Often you will see that the onsuccess is also executed. So both failed and succes events at the same time(!)

Testet with:

Does not work:
OSX - El Capitan (Apple Macbook Pro)
Windows 7
Windows 8
Windows 10 two different computers
Samsung Note3 phone (Android)
Lenovo Android tablet
Windows 10 tablet (Lamina)

Works on:
Ipad
Your computer
Apparantly on Sergiy Kulibabas computer after we changed MaximumAge option to 1000

Edit: OSX - El Capitan (Apple Macbook Pro) added

Return to “Issues”