Leanplum's user guides and developer documentation.

Leanplum Documentation

Leanplum's user guides, SDK setup, API docs, and more resources are here to help you get the most out of A/B testing, Campaigns, Messaging, and Analytics.

Sending a push before or after a time-based event parameter or user attribute

When creating a push notification with triggered delivery 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 based on a specific timestamp sent as a parameter or a user attribute. A common use case for this functionality is for travel apps sending a push notification 24 hours before a user’s flight departs.

To use this feature, you must send the timestamp as a parameter value for the trigger event or state, or as a user attribute. The timestamp should be in unix format.


You can also use an ISO-8601 timestamp to trigger the message. EXACT FORMAT:
2016-05-23T23:56:21Z - this is May 23rd, 2016 at 23:56:21, always in UTC timezone.

Event parameters in ISO format will not be searchable in the Users or Analytics tab. For this reason, we recommend using a unix timestamp when possible. User attributes can be searchable in both formats, the ISO format being more readable.

To base a push notification delay off of a timestamp, do the following:

  1. Configure a push notification message with Triggered delivery.
  2. Set the trigger event.
  3. 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.
  4. Set the time format to exact time.
  5. Click on the after trigger drop-down menu and select before time parameter.
  6. Click the text field to the right of before time parameter and select the appropriate parameter name.

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.

Updated about a year ago

Sending a push before or after a time-based event parameter or user attribute

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.