
Security News
TypeScript 6.0 Released: The Final JavaScript-Based Version
TypeScript 6.0 introduces new standard APIs, modern default settings, and deprecations as it prepares projects for the upcoming TypeScript 7.0 release.
capacitor-plugin-apptrackingios
Advanced tools
A Capacitor plugin for handling App Tracking Transparency on iOS.
npm install capacitor-plugin-apptrackingios
npx cap sync
Add the NSUserTrackingUsageDescription key to your app's Info.plist file with a description of why you're requesting tracking authorization:
<key>NSUserTrackingUsageDescription</key>
<string>We use tracking data to provide personalized ads and improve your experience.</string>
App Tracking Transparency plugin for Capacitor
getStatus() => any
Get the current tracking authorization status.
On iOS 14+, this returns the current App Tracking Transparency authorization status. On iOS versions below 14, this will always return 'authorized'. On web platforms, this will always return 'authorized'.
Returns: any
Since: 1.0.0
requestPermission() => any
Request tracking authorization from the user.
On iOS 14+, this will prompt the user with the App Tracking Transparency permission dialog. On iOS versions below 14, this will always return 'authorized' without showing a prompt. On web platforms, this will always return 'authorized' without showing a prompt.
Note: This plugin includes a workaround for a bug in iOS 17.4+ where the tracking authorization status may incorrectly return 'denied' when it should be 'notDetermined'.
Returns: any
Since: 1.0.0
Possible tracking authorization status values
'notDetermined' | 'restricted' | 'denied' | 'authorized'
import { AppTrackingPlugin } from 'capacitor-plugin-apptrackingios';
// Check current status
const checkStatus = async () => {
const { status } = await AppTrackingPlugin.getStatus();
console.log('Current tracking status:', status);
return status;
};
// Request permission
const requestPermission = async () => {
const { status } = await AppTrackingPlugin.requestPermission();
console.log('Tracking permission status:', status);
return status;
};
// Example usage in a component
const initializeTracking = async () => {
const currentStatus = await checkStatus();
if (currentStatus === 'notDetermined') {
// Only request if not determined yet
const newStatus = await requestPermission();
// Handle the user's choice
if (newStatus === 'authorized') {
// User allowed tracking
console.log('User allowed tracking');
} else {
// User denied tracking
console.log('User denied tracking');
}
}
};
This plugin includes a workaround for a bug in iOS 17.4+ where the tracking authorization status may incorrectly return 'denied' when it should be 'notDetermined'. The plugin automatically detects this condition and handles it appropriately.
MIT
FAQs
app tracking alert for ios
The npm package capacitor-plugin-apptrackingios receives a total of 0 weekly downloads. As such, capacitor-plugin-apptrackingios popularity was classified as not popular.
We found that capacitor-plugin-apptrackingios demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
TypeScript 6.0 introduces new standard APIs, modern default settings, and deprecations as it prepares projects for the upcoming TypeScript 7.0 release.

Security News
/Research
Newly published Trivy Docker images (0.69.4, 0.69.5, and 0.69.6) were found to contain infostealer IOCs and were pushed to Docker Hub without corresponding GitHub releases.

Research
/Security News
The worm-enabled campaign hit @emilgroup and @teale.io, then used an ICP canister to deliver follow-on payloads.