Skip to content

Use Case: Custom Rendering of Experiments: User created Notifications

Bob Evans edited this page Jul 1, 2014 · 3 revisions

Give programmers a way to create a notification in the system tray to communicate to the user

This api call allows the experimenter to create a reminder or message to a user from the experiment rendering form on the mobile device. It also allows the user to get back into the experiment easily by clicking on the notification. An experiment can only create one notification at any given time.

Setting a notification with a paco.createNotification call

A programmer using custom rendering should have an api,

paco.createNotification("title")

that they can call to communicate to the user. If the user clicks on the notification, it should be dismissed and take the user to the experiment executor form.

Removing a previously-created notification with a paco.removeNotification call

A programmer using custom rendering should have an api,

paco.removeNotification()

that they can call to remove a previous notification from the tray.

Stopping an Experiment removes any user-created notifications

If the experiment is stopped or expires, the user-created notifications for that experiment should be deleted from the tray.

Clone this wiki locally