Socket
Socket
Sign inDemoInstall

@capacitor-community/advertising-id

Package Overview
Dependencies
2
Maintainers
42
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @capacitor-community/advertising-id

Allows access to the IDFA (iOS) and AAID (Android)


Version published
Weekly downloads
3.7K
decreased by-1.76%
Maintainers
42
Install size
23.1 kB
Created
Weekly downloads
 

Readme

Source

@capacitor-community/advertising-id

Allows access to the IDFA (iOS) and GAID (Android)

Install

npm install @capacitor-community/advertising-id
npx cap sync

iOS

iOS requires the following usage description be added and filled out for your app in Info.plist to use the requestTracking() method:

  • NSUserTrackingUsageDescription (Privacy - Tracking Usage Description)

API

  • requestTracking()
  • getAdvertisingId()
  • getAdvertisingStatus()
  • Type Aliases

requestTracking()

requestTracking() => Promise<{ value: AdvertisingStatus; }>

Returns: Promise<{ value: AdvertisingStatus; }>


getAdvertisingId()

getAdvertisingId() => Promise<{ id: string; status: AdvertisingStatus; }>

Returns: Promise<{ id: string; status: AdvertisingStatus; }>


getAdvertisingStatus()

getAdvertisingStatus() => Promise<{ status: AdvertisingStatus; }>

Returns: Promise<{ status: AdvertisingStatus; }>


Type Aliases

AdvertisingStatus

'Authorized' | 'Denied' | 'Not Determined' | 'Restricted'

Keywords

FAQs

Last updated on 18 May 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc