-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
requestTrackingPermission crash the app [OS 14.5.1] #9
Comments
Can you share the crashlogs? Check your native logs window in Xcode. Did you edit your Info.plist to add a tracking info description? |
@mrousavy, unfortunately, logs are clear, through the cycle of executing my component, I've used a log to this case and the last message that I've faced it's status of that shows Yes, I edit Info.plist and added the required key with the description. The problem that on the emulator everything works fine, but on real device, after |
I have NSUserTrackingUsageDescription in my Info.plist and I remember this was working before this version.
|
I have the same error "null is not an object (evaluating 'TrackingTransparency.getTrackingStatus')" How can I solve this? @mrousavy |
Hey guys. Removing the app from simulator/real device, removing Pods folder, reinstalling pods and reseting the metro cache with react-native start --reset-cache did work for me. |
I also had the same situation as you. I try adding |
It's still crashing :( |
Have you added NSUserTrackingUsageDescription to info.plist? |
Works for me too. |
Thank you so much for this solution. Have been stuck at this, and this fixed the issue. I am unsure why or which step solved it, but it works now!
|
Hi, thank you for your library. I've set up action inside my root component, to call prompt modal
It's very simple but anyway app crashed when requestTrackingPermission() triggered
`const onCheckUserTrackingPermission = useCallback(async () => {
try {
const trackingStatus = await getTrackingStatus();
}, []);
useEffect(() => { onCheckUserTrackingPermission(); }, [onCheckUserTrackingPermission]);
The text was updated successfully, but these errors were encountered: