capacitor-adid-idfa
v0.0.3
Published
get advertise id
Downloads
3
Readme
capacitor-adid-idfa
Get advertise id: adid(android), idfa(ios)
Install
npm install capacitor-adid-idfa
npx cap sync
API
import { AdId } from 'capacitor-adid-idfa';
export class AppComponent {
constructor(private platform: Platform){
this.platform.ready().then(async () => {
const adid = await AdId.getAdId();
console.log('adid=', JSON.stringify(adid));
})
}
}
Result
if success
{id: 'xxxx-xxxx-xxx-xxxxx-xxx'}
if fail
{id: 'none'}