xiaozai
Posts: 13
Joined: Fri Sep 02, 2016 7:27 am

Sending Push Message to Android

Mon Nov 07, 2016 7:50 am

I'm very new Python and still exploring

How can i send a push notification to an Android if my code is

Code: Select all

if result == 1:
    print('Hello user. You Rpi has responded with push message')
else:
    print('Hello user. The command is invalid')
i just want to send the text "Hello user. You Rpi has responded with push message" or "Hello user. The command is invalid".
I prefer not to create any android apps and i prefer just to use any available push message application such as InstaPush
Last edited by xiaozai on Mon Nov 07, 2016 8:06 am, edited 1 time in total.

mattmiller
Posts: 2245
Joined: Thu Feb 05, 2015 11:25 pm

Re: Sending Push Message to Android

Mon Nov 07, 2016 8:04 am

You need something installed on your phone to receive the alert. Droid phones do not have a native notifier app that you can send a message to:

So you need to install something (could be twitter or email if you don't want to install something like https://pypi.python.org/pypi/pushbullet.py )

Return to “Python”