Git Product home page Git Product logo

Comments (6)

krizzu avatar krizzu commented on July 2, 2024 4

Seems like OS issue
https://forums.developer.apple.com/forums/thread/746432

from react-native-permissions.

Rebsos avatar Rebsos commented on July 2, 2024 1

It's still not fixed by Apple, so I used while + check in redux-saga:

  let result = yield call(check, PERMISSIONS.IOS.APP_TRACKING_TRANSPARENCY);
  if (result === RESULTS.DENIED) {                                  // The permission has not been requested, so request it.
    /*
      There is a bug in iOS 17.4 request function. It does not wait for the user to make a decision
      and returns immediately "blocked". Usually it should wait and return the decision of the user.
      The check function works correctly. Therefore, we have to loop and check until the user has
      made a decision (denied or granted). Source:
      https://github.com/zoontek/react-native-permissions/issues/857
      https://forums.developer.apple.com/forums/thread/746432
    */
    yield call(request, PERMISSIONS.IOS.APP_TRACKING_TRANSPARENCY); // Bug in 17.4. Don't use result, because it is always "blocked"
    while (result === RESULTS.DENIED) {
      yield delay(5000);
      result = yield call(check, PERMISSIONS.IOS.APP_TRACKING_TRANSPARENCY);
    }
  }

from react-native-permissions.

Vepsur avatar Vepsur commented on July 2, 2024

I was having the same issue, and all that I needed to do was globally turn on tracking in my iPhone settings

from react-native-permissions.

Mihai-github avatar Mihai-github commented on July 2, 2024

Does anybody experience this behavior but with unavailable? For me on iOS 17.x.x I have this.

from react-native-permissions.

dylancom avatar dylancom commented on July 2, 2024

Should be fixed now in iOS 17.5

from react-native-permissions.

Geoffrey63 avatar Geoffrey63 commented on July 2, 2024

Should be fixed now in iOS 17.5

Yes, tested on my apps, it has been fixed in iOS 17.5.

from react-native-permissions.

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.