Sending hits according to the application state

  • iOS
  • watchOS
  • tvOS
 

Foreword

The Internet AT SDK allows you to condition the sending of hits, depending on the application state (Active, Inactive, other).

The SDK has a configuration key “sendOnApplicationState” which can take different values:

  • “activeOnly”: to send hits when the application is in active mode only.
  • “activeOrInactive”: to send hits when the application is in active or inactive mode.
  • “all” (default value): to send hits without considering the application state.
 

Tagging examples

The settings can be changed in the application code via the dedicated helper “setSendOnApplicationState” or via the “setConfig” configuration update method.

The “setSendOnApplicationState” helper is only available on Swift.

Using the helper:

Using the configuration update method:


Was this post helpful?
Yes
No
Last update: 17/12/2018