Comments (6)
Seems like OS issue
https://forums.developer.apple.com/forums/thread/746432
from react-native-permissions.
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.
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.
Does anybody experience this behavior but with unavailable
? For me on iOS 17.x.x I have this.
from react-native-permissions.
Should be fixed now in iOS 17.5
from react-native-permissions.
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)
- Syntax Error in Setup? HOT 5
- [Android] App crashed totally after call `request()` function when `minifyEnabled` is `true` HOT 3
- [Android 13-14] App crash at requestNotifications(['alert', 'sound']) HOT 3
- Notification Permission In Android HOT 3
- I encountered an error message stating 'ENOENT: no such file or directory HOT 4
- AVAudioApplication build fail HOT 3
- Invalid `Podfile` file: undefined method `prepare_react_native_project!' HOT 1
- jest testing: waitForNextUdpate times out on checkPermissions HOT 8
- Unable to detect IOS album permissions HOT 1
- ios.permission.FACE_ID denied HOT 3
- [Android] 'Allow once' permission option always returns granted as permission status even after killing the app and relaunch it again HOT 1
- [Android] 'Don't Allow' permission option always returns denied as permission status and doesn't request the permission again HOT 3
- Crash on Android: Unable to resume activity java.lang.reflect.InvocationTargetException HOT 1
- await request(PERMISSIONS.IOS.PHOTO_LIBRARY); is always unavailable HOT 13
- App Hang: The app was terminated while unresponsive on RNPermissionHandlerLocationWhenInUse HOT 2
- No permission handler detected React-native 0.74.1 HOT 4
- Permission issue in vivo X70 HOT 1
- unavailable response in await check("ios.permission.MICROPHONE") and await request("ios.permission.MICROPHONE") on iOS HOT 4
- Confusion with setup instructions and Expo HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-permissions.