For Android and iOS version, Kantar Media Audiences-lib has a feature the so-called "offlineMode". This mode can be switched on and off by using public API: KMA_SpringStreams.offlineMode.
If the lib is configured to offlineMode, KMA_SpringStreams library will hold all requests in a local buffer and send them when the device goes back online.
KMA_SpringStreams lib checks the internet connection regularly by using the iOS Timer and send the data as soon as possible.
Please notice:
How the library acts when offline-mode is enabled:
For more information, check the chapter about offline-mode below.
Device ID (did) | Advertising ID (ai) | Mac ID (mid) | ID_For_Vendor (ifv) | |
---|---|---|---|---|
iOS4 | --- | --- | ![]() | --- |
iOS5 | --- | --- | ![]() | --- |
iOS6 | --- | ![]() | ![]() | ![]() |
iOS7 | --- | ![]() | --- | ![]() |
iOS8 | --- | ![]() | --- | |
iOS9 | — | — |
Considering that the Apple private policy is changing all the time, Kantar Media Audiences libs have to adapt different UDIDs for identifying the end user's devices.
Please attention: |
<key>LSApplicationQueriesSchemes</key> <array> <string>**.***.ipm</string> //please change **.*** to the parameters given in your library delivery <string>*****PanelApp</string> //please change ***** to the parameters given in your library delivery </array> |
<key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <false/> <key>NSExceptionDomains</key> <dict> <key>*****</key> //please change ***** to the parameters given in your library delivery <dict> <key>NSIncludesSubdomains</key> <true/> <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key> <true/> <key>NSExceptionRequiresForwardSecrecy</key> <false/> </dict> </dict> </dict> |
if ATS is not enabled in your application, as NSAllowsArbitraryLoads = true, then you don't need to modify anything. |
Google Advertising ID
Beginning with Kantar Media Audiences lib 1.6.0, GoogleAdvertisingID is adapted to identify the android devices.
In order to achieve this, please import google-play-services_lib to your application.
Follow the tutorial detailed info: http://developer.android.com/google/play-services/setup.html
Don't forget to add following items into your project AndroidManifest.xml file:
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> |