If you are on Frappe Cloud, this should work automatically. You just need to enable push notifications on your device by going to the three dot menu in the bottom.
The push notification is run via a relay server with a separate Frappe app. It’s under code/security review at Frappe and hence is not open sourced yet. They plan to release it to the public soon though!