swarmcity / SwarmCityDapp

Swarm City dApp FrontEnd
MIT License
28 stars 10 forks source link

Location malfunction (Ep 1 Epic 1) #818

Closed matthewcarano closed 5 years ago

matthewcarano commented 6 years ago

Location

https://sc-nightly.netlify.com/location

Expected behavior

Once one agrees to give location permission, the app remembers it.

Actual behavior

Once one agrees to give location permission, one is returned to the new-request page. If one selects the location slider, one is sent back to the /location page. The app does not remember one has granted location permission.

Steps to reproduce the problem

Go to /new-request. Select the location slider which brings up /location. Select check mark which brings up browser window asking to give location permission. Agree to that and that brings up /new-request page. The page has been reset and the location slider is selected again, it loops back to /location.

Operating system / hardware

27: iMac, mid-2011, OS High Sierra V. 10.13.4. Firefox Quantum V. 62.0

matthewcarano commented 6 years ago

This works correctly on Chrome, regular. Same hardware, OS.

matthewcarano commented 6 years ago

This works correctly on Chrome incognito, with one exception. After accepting location permissions, and are returned to /new-request, the text and SWT field, if they were populated, are no longer. The page /new-request is reset.

xardass commented 6 years ago

@matthewcarano @kikipluche should be fixed.

matthewcarano commented 6 years ago

@xardass on Chrome incognito the issue persists. I fill out the item details, click on the location slider which brings me to the blue screen. I click the check mark to allow location. A small window pops up asking if I'll allow the site to access my location. I choose "Allow" and it brings me back to the item detail. If I try to select the slider again to change location, it brings me back to the blues screen. Heres a vid:

Location.mov.zip

xardass commented 6 years ago

I have tried on mobile and desktop, I can't reproduce the same issue (although your video is proof enough). Let's leave this open for now.

matthewcarano commented 6 years ago

Cool. It's fine regular chrome, just incognito is the issue.

xardass commented 6 years ago

yeah but it works on my incognito chrome

kikipluche commented 6 years ago

incognito is always a difficulty to debug