Code Monkey home page Code Monkey logo

Comments (4)

mrousavy avatar mrousavy commented on May 30, 2024

Are you sure the native module has installed successfully?

Run pod install and then rebuild the App (run it on your Phone).

from react-native-tracking-transparency.

daangelov avatar daangelov commented on May 30, 2024

Yes, everything is installed. As I said it works when running on a simulator with iOS 14.5 or lower.

from react-native-tracking-transparency.

mrousavy avatar mrousavy commented on May 30, 2024

Well the method should exist even if it is being run on an iOS version below 14.5:

RCT_EXPORT_METHOD(getTrackingStatus:(RCTPromiseResolveBlock)resolve rejector:(RCTPromiseRejectBlock)reject)

so the only reason that TrackingTransparency.getTrackingStatus can be null is if the native module has not been installed (that is, pod install + rebuild the app for your phone)

Can you put a breakpoint in that line to see if it gets invoked?

from react-native-tracking-transparency.

daangelov avatar daangelov commented on May 30, 2024

I restarted my iPhone, deleted node_module and ios/Pods, ran yarn install and pod install and now everything seem to work. The status returned is "restricted".

Sorry to bother you, thank you very much for your help, appreciate it!

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.