Annotation Notifications
Enabling
DocViewer can send notifications to Canvas when annotations are left. In order to enable this, on session launch send the following parameters:
- canvas_base_url
- user_id
- submission_user_id
- course_id
- assignment_id
- submission_id
- post_manually
- posted_at
Logic
DocViewer decides to send notifications as follows:
- Are all required parameters present? If not, don't send notifications.
- Is post_manually false? If so, send notifications.
- If post_manually is true, is posted_at non-null? If posted_at is non-null, send notifications.
- If post_manually is true and posted_at is null, do not send notifications.
- Also, if post_manually is false, when sending the notification also tell Canvas to post the assignment.