@capacitor-community/advertising-id
TypeScript icon, indicating that this package has built-in type declarations

6.0.0 • Public • Published

@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()

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'

Readme

Keywords

Package Sidebar

Install

npm i @capacitor-community/advertising-id

Weekly Downloads

5,082

Version

6.0.0

License

MIT

Unpacked Size

25.1 kB

Total Files

27

Last publish

Collaborators

  • vmfo
  • multishiv19
  • ionicjs
  • danielprrazevedo
  • nkalupahana
  • dtarnawsky
  • ryaa
  • dallasjames
  • tafelnl
  • thegnuu
  • pbowyer
  • capcombot
  • jcesarmobile
  • maxlynch
  • mhartington
  • it_mike_s
  • byrds
  • rdlabo
  • priyankpatel
  • dwieeb
  • stewan
  • arielhernandezmusa
  • jeepq
  • start9keagan
  • boosten
  • nklayman
  • ihadeed
  • ckgaparajita
  • jpender
  • nhyatt
  • pwespi
  • epicshaggy
  • thomasvidas
  • robingenz
  • diachedelic
  • johnborges
  • tobyas
  • elylucas
  • giodimiliaionic
  • brownoxford
  • mrbatista
  • bazuka5801
  • hemang