buildscript {
repositories {
...
// Configure the Maven repository address for the HMS Core SDK.
maven {url 'https://developer.huawei.com/repo/'}
}
}
allprojects {
repositories {
...
maven {url 'https://developer.huawei.com/repo/'}
}
}
Add this entries to Info.plist
file before using requestTrackingAuthorization()
method.
<key>NSUserTrackingUsageDescription</key>
<string>I want to trace your activity.</string>
requestTrackingAuthorization()
should be called and response must be TrackingRequestStatus.authorized
. After then getIdfa()
method will return ad id.