top of page
  • Writer's pictureQuan Sheng

Push Notification

I wonder how do we get notification on our phone? There is a thing called "cloud messaging service"


How it works? One example of instagram new follower notification


When there is a new follower, the database will be updated with the new follower.

The push notification service will be activated with the condition.


There are many different notification service such as the commonly used google cloud messaging.


For me i used pushbullet as my platform to do a simple push notification.


The documentation for pushbullet where it explain how does the service works


1st i need create a unique token from the service.

The token that is created is specifically used for my own account.


This a python script which i have created and see what i can do.

Passing in the two parameters, title and message


With the app pushbullet, i received it on my phone.


























This is a really useful when there is a need to notify the user if there any emergency or maybe new updates that they should not miss.



Stay tuned for more upcoming non-pi project!


7 views

Comments


bottom of page