Code Monkey home page Code Monkey logo

cordova-acpcore's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cordova-acpcore's Issues

ACPCore.h not found when importing <ACPCore/ACPCore.h> using cordova-acpcore

Expected Behaviour

ACPCore should be found.

Actual Behaviour

ACPCore is not found.

Reproduce Scenario (including but not limited to)

npm i @adobe/cordova-acpcore

ionic cordova plugin add @adobe/cordova-acpcore

ionic cordova build ios

press play in xcode

Platform and Version

Ionic:

Ionic CLI : 5.4.16
Ionic Framework : @ionic/angular 5.1.1
@angular-devkit/build-angular : 0.901.12
@angular-devkit/schematics : 9.1.7
@angular/cli : 9.1.7
@ionic/angular-toolkit : 2.3.3

Cordova:

Cordova CLI : 8.0.0
Cordova Platforms : ios 4.5.5
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, (and 24 other plugins)

Utility:

cordova-res (update available: 0.15.3) : 0.15.2
native-run : not installed

System:

ios-sim : 8.0.2
NodeJS : v12.13.0 (/usr/local/bin/node)
npm : 6.12.0
OS : macOS Big Sur
Xcode : Xcode 12.5 Build version 12E262

.setPricacyStatus does not work on ios

Expected Behaviour

setPrivacyStatus should set the status according to the value that is passed to it.

Actual Behaviour

privacyStatus is always set to 2 (Unknown)

Reproduce Scenario (including but not limited to)

when i call ACPCore.setPrivacyStatus(ACPCore.ACPMobilePrivacyStatusOptIn, this.trackingSuccess, this.trackingError);
in my service and directly after that call ACPCore.setPrivacyStatus.getPrivacyStatus(.... it returns 2;

My ACPCore set-up seems to be correct, it calls the function of the Plugin with the correct value.
If i call ACPCore.setPrivacyStatus directly from swift code it also works. And events are being sent.

Steps to Reproduce

call ACPCore.setPrivacyStatus(ACPCore.ACPMobilePrivacyStatusOptIn ...
see in xcode that reqauests are being queued

Platform and Version

ios 12.1

Sample Code that illustrates the problem

 allowTrackingChange(allow: boolean) {
    if (!allow) {
      ACPCore.setPrivacyStatus(ACPCore.ACPMobilePrivacyStatusOptOut, this.trackingSuccess, this.trackingError);
    } else {
      ACPCore.setPrivacyStatus(ACPCore.ACPMobilePrivacyStatusOptIn, this.trackingSuccess, this.trackingError);
    }
    
    ACPCore.getPrivacyStatus(status => console.log(status)) // returns 2
  }

Logs taken while reproducing problem

logs

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.