Notifications

  • iOS
  • watchOS
  • tvOS
 

Foreword

Push notifications can trigger two application delegate methods depending on the context:

The delegate methods will only be triggered if the user touches the action button or message notification, and not the close/cancel button.

  1. application:didFinishLaunchingWithOptions:
    This method is called if the application has not yet been launched. The application will then be launched and the notification will be available in the “launchOptions” dictionary.
  2. application:didReceiveRemoteNotification:
    This method is called if the application has already been launched and is currently running or is in the background.

Tagging of notifications is done in the body of these methods.

 

Tagging examples

  • To measure a notification that was received when the application had not yet been launched, if the notification contains a reference to the campaign (in the ‘xto’ key)

  • To measure a notification if the application is currently running or is in the background, if the notification contains a reference to the campaign (in the ‘xto’ key)

If you wish to simplify the tagging of your links without having to know the significance of each field, try the interface available in our marketplace. Please note that this interface has been created by our community and can be improved, so feel free to send us your feedback!

Was this post helpful?
Yes
No
Last update: 18/05/2018