Giter Club home page Giter Club logo

Comments (7)

DannyMoerkerke avatar DannyMoerkerke commented on May 26, 2024

What do you mean?

from whatpwacando.today.

qn0361 avatar qn0361 commented on May 26, 2024

image

image

from whatpwacando.today.

DannyMoerkerke avatar DannyMoerkerke commented on May 26, 2024

What platform, device and browser + version?

from whatpwacando.today.

qn0361 avatar qn0361 commented on May 26, 2024

in my case the solution was: https://stackoverflow.com/a/73566334
(change safari sites settings)

maybe it can help the issue's author too.

i would suggest to directly mention that in the message in the app. it's not so obvious that you should change safari geo settings – not the settings of whatpwacandotoday app nor enabling geo services in general.

i mean it becomes obvious when you think about how it works under the hood. but a little extra transparency won't hurt in my opinion.

from whatpwacando.today.

DannyMoerkerke avatar DannyMoerkerke commented on May 26, 2024

Thanks for reporting, I'm currently investigating this. In your screen shot the dialog is shown when permission is denied but on my iOS device I notice there is nothing showing when Location Services for Safari websites is set to "Ask Next Time or When I Share".
When I then try in Safari, I do get the permission prompt and when I give permission the setting is automatically changed to "While Using the App" and after that it also works in the PWA.

In your solution, did you set a timeout in the options object for navigator.geolocation.getCurrentPosition and then Promise.race with a setTimeout with a slightly longer timeout?

from whatpwacando.today.

DannyMoerkerke avatar DannyMoerkerke commented on May 26, 2024

@qn0361 I managed to fix the issue, can you please check on your side?

from whatpwacando.today.

DannyMoerkerke avatar DannyMoerkerke commented on May 26, 2024

Issue fixed, no confirmation from OP

from whatpwacando.today.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.