hansemannn / titanium-app-tracking-transparency

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iOS 14.5+ App Tracking Transparency

Use the AppTrackingTransparency framework (iOS 14.5+) in the Titanium SDK.

✨ The development of this module was sponsored by @yozef, thank you!

Requirements

  • Titanium SDK 9.2.0+
  • iOS 14.5+
  • The NSUserTrackingUsageDescription permission flag in your tiapp.xml <ios> plist section

API

Properties

  • authorizationStatus, one of:
    • AUTHORIZATION_STATUS_AUTHORIZED
    • AUTHORIZATION_STATUS_DENIED
    • AUTHORIZATION_STATUS_NOT_DETERMINED
    • AUTHORIZATION_STATUS_RESTRICTED

Methods

  • hasTrackingPermissions() -> Bool
  • requestTrackingPermissions(callback)

Example

See example/app.js

Author

Hans Knöchel

License

MIT

Copyright

(c) 2021-present by Hans Knöchel

About

License:MIT License


Languages

Language:JavaScript 46.9%Language:Swift 34.9%Language:Objective-C 18.3%