Call custom function onSave of a form

Hello

I have a scenario where a custom function needs to be called on save of a form.

(I need it to send Push notifications on save of that particular record)

https://frappe.io/docs/user/en/guides/app-development/executing-code-on-doctype-events

does this help?
image