Use the AppTrackingTransparency framework (iOS 14.5+) in the Titanium SDK.
✨ The development of this module was sponsored by @yozef, thank you!
- Titanium SDK 9.2.0+
- iOS 14.5+
- The
NSUserTrackingUsageDescription
permission flag in your tiapp.xml<ios>
plist section
-
authorizationStatus
, one of:AUTHORIZATION_STATUS_AUTHORIZED
AUTHORIZATION_STATUS_DENIED
AUTHORIZATION_STATUS_NOT_DETERMINED
AUTHORIZATION_STATUS_RESTRICTED
-
hasTrackingPermissions() -> Bool
-
requestTrackingPermissions(callback)
See example/app.js
Hans Knöchel
MIT
(c) 2021-present by Hans Knöchel