How to Unlock Resource Library and send a Push Notification
With mEMA, you can create Resource Libraries that users can access at all time, but at the same time you can also set a Resource Library to be unlocked based on a baseline condition that is met while participant is completing a survey. In addition to that you can also set for a question to trigger a Push Notification in order to inform the user that a new resource is available to be viewed.
Here are the steps that you need to follow in order to make a Resource Library be available after answering a question, and also send a Push Notification to let the user know about it:
Step 1: On mEMA website go to Create Survey page and select your survey
Step 2: Go to the question that you want the baseline condition to be based on, and click the Edit (pencil) button
Step 3: Check the “Is Baseline” checkbox
Step 4: Check the “Trigger Notification” checkbox
Step 5: Set the condition for the Push Notification. The condition is set for the same question, and as you can see in the example, we’re going to use the question id in square brackets “[]” with the condition that we want to trigger the message, and in our example, because “trigger” has value of one, we’ve set it to be “< 2”, meaning that the Push notification will be triggered only if the question response value will be less then 2.
Step 6: Set a Title to the Push notification and a message to the body.
Step 7:Click Set Parameters
Step 8: Go to Resource Library screen
Step 9: Create a new resource library or click Edit to an existing one
Step 10: Create your Resource library with a title (mandatory), body(optiona), external link (optional), attachment (optional).
Step 11: Create the baseline condition using the analytics code from the question we’ve recently selected as “Is baseline”. In our example, we’ve set the baseline condition to unlock the resource library when the maximum (max) value of the question (using the analytics code) is greater or equal (gte) then 1.
- Please visit the Baseline conditions helpdesk article, to get a more broad idea of how you can create your own baseline condition that meets your needs