When creating a push notification with a triggered delivery type and an event or state trigger, you must decide the length of time you want to delay the push after the trigger occurs. One option is to delay the push on a specific timestamp sent as a parameter or a user attribute. A common use case for this functionality is for travel apps, to send a push notification 24 hours before a user’s flight departs.
To utilize this feature, you must send the timestamp as a parameter value for the trigger event or state, or as a user attribute, in ISO-8601 format (for example, “2016-05-23T23:56:21Z” which is May 23rd, 2016 at 23:56:21 UTC). To base a push notification delay off of a timestamp, do the following:
- Configure a push notification message with a Triggered delivery type
- Set the trigger event
- Set what you would like the delay to be. For the example of sending a push 24 hours before a flight departs, you would set a delay of 1 days.
- Set the time format to exact time
- Click on the after trigger drop-down menu and select before time parameter
- Click the text field to the right of before time parameter and select the appropriate parameter name
If you wanted to set a delay after a time parameter, you would select after time parameter in step 5. To utilize user attributes instead, you would select either before time user attribute or after time user attribute in step 5.