Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

capacitor-app-tracking-transparency

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capacitor-app-tracking-transparency

Capacitor plugin to request user authorization to access app-related data for tracking the user or the device. iOS only.

  • 0.1.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
31
increased by10.71%
Maintainers
1
Weekly downloads
 
Created
Source

Capacitor App Tracking Transparency plugin

Available methods:

  • getStatus()
  • requestPermission()

Usage example:

  1. In your module (e.g. app.module.ts)
...
import { AppTrackingTransparency } from 'capacitor-app-tracking-transparency'

@NgModule({
	...
	providers: [
		...
		AppTrackingTransparency,
	],
})
export class AppModule {}

  1. In your component or service (e.g. permission.service.ts)
...
import { AppTrackingTransparency, AppTrackingTransparencyStatus } from 'capacitor-app-tracking-transparency'

@Injectable()
export class PermissionService {
	constructor(private att: AppTrackingTransparency) {}

    async requestATT() {
		const status = await this.att.getStatus()
		if(status === AppTrackingTransparencyStatus.unrequested) {
			const new_status = await this.att.requestPermission()
		}
	}
}

Keywords

FAQs

Package last updated on 20 Sep 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc