Code Monkey home page Code Monkey logo

Comments (10)

axeljeremy7 avatar axeljeremy7 commented on May 31, 2024 6

I have NSUserTrackingUsageDescription in my Info.plist and I remember this was working before this version.
I have error for message: :"null is not an object (evaluating 's.requestTrackingPermission') and name: TypeError

      const trackingStatus = await requestTrackingPermission();
      logInfoInstabug(trackingStatus, 'trackingStatus');
      report(trackingStatus, 'trackingStatus:');
    } catch (e) {
      report(e, 'requestTrackingPermission() Error');
      reportErrorInstabug(e, 'requestTrackingPermission() Error');
    }

from react-native-tracking-transparency.

ViktorVojtek avatar ViktorVojtek commented on May 31, 2024 2

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.

from react-native-tracking-transparency.

teivienn avatar teivienn commented on May 31, 2024 2

Have you added NSUserTrackingUsageDescription to info.plist?

from react-native-tracking-transparency.

mrousavy avatar mrousavy commented on May 31, 2024

Can you share the crashlogs? Check your native logs window in Xcode.

Did you edit your Info.plist to add a tracking info description?

from react-native-tracking-transparency.

OleksiyTrofimenko avatar OleksiyTrofimenko commented on May 31, 2024

@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 const trackingStatus = await getTrackingStatus();

that shows not-determined

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 requestTrackingPermission called, my app crashed

from react-native-tracking-transparency.

Giacomo92 avatar Giacomo92 commented on May 31, 2024

I have the same error "null is not an object (evaluating 'TrackingTransparency.getTrackingStatus')"

How can I solve this? @mrousavy

from react-native-tracking-transparency.

ncthang198 avatar ncthang198 commented on May 31, 2024

I have the same error "null is not an object (evaluating 'TrackingTransparency.getTrackingStatus')"

How can I solve this? @mrousavy

I have NSUserTrackingUsageDescription in my Info.plist and I remember this was working before this version.
I have error for message: :"null is not an object (evaluating 's.requestTrackingPermission') and name: TypeError

      const trackingStatus = await requestTrackingPermission();
      logInfoInstabug(trackingStatus, 'trackingStatus');
      report(trackingStatus, 'trackingStatus:');
    } catch (e) {
      report(e, 'requestTrackingPermission() Error');
      reportErrorInstabug(e, 'requestTrackingPermission() Error');
    }

I also had the same situation as you. I try adding pod 'react-native-tracking-transparency', :path => '../node_modules/react-native-tracking-transparency' in Podfile then pod install. This work for me.

from react-native-tracking-transparency.

karthick-t2s avatar karthick-t2s commented on May 31, 2024

I have the same error "null is not an object (evaluating 'TrackingTransparency.getTrackingStatus')"
How can I solve this? @mrousavy

I have NSUserTrackingUsageDescription in my Info.plist and I remember this was working before this version.
I have error for message: :"null is not an object (evaluating 's.requestTrackingPermission') and name: TypeError

      const trackingStatus = await requestTrackingPermission();
      logInfoInstabug(trackingStatus, 'trackingStatus');
      report(trackingStatus, 'trackingStatus:');
    } catch (e) {
      report(e, 'requestTrackingPermission() Error');
      reportErrorInstabug(e, 'requestTrackingPermission() Error');
    }

I also had the same situation as you. I try adding pod 'react-native-tracking-transparency', :path => '../node_modules/react-native-tracking-transparency' in Podfile then pod install. This work for me.

It's still crashing :(

from react-native-tracking-transparency.

piyushbeli avatar piyushbeli commented on May 31, 2024

pod 'react-native-tracking-transparency', :path => '../node_modules/react-native-tracking-transparency'

Works for me too.

from react-native-tracking-transparency.

vladdeSV avatar vladdeSV commented on May 31, 2024

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.

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!

react: 16.11.0
react-native: 0.62.2
react-native-tracking-transparency 0.1.1

from react-native-tracking-transparency.

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.