Getting Push Notification to work from html PUT

Pushsafer make it easy and safe to get push-notifications in real time on your Android or Windows mobile device, iPhone, iPad and Desktop!

Mit Pushsafer kann man in Echtzeit, einfach und sicher, Push-Benachrichtigungen auf sein iPhone, iPad, Android oder Windows Gerät sowie auf den Desktop senden lassen!

======================
Google Play
App Store
Windows 10 Store
Homepage
cdave1252
Posts: 2
Joined: 23. Aug 2019, 21:55

Getting Push Notification to work from html PUT

Postby cdave1252 » 23. Aug 2019, 22:30

I am a new user to PushSafer.
I have installed Android Pushsafer and have my id, key, etc.
The app shows no notification, even when I push some to it.

I send a Push notification from my HomeAutomation software (ISY)
------
using http:
POST / HTTP/1.1
Host: api.pushover.net:80
Content-Type: application/x-www-form-urlencoded
Content-Length: 73
User-Agent: Mozilla/4.0
k=#mykeywithoutpoundsigns#&d=a&m=Test Notification&t=Test Notification Title
------

I get a response back:
-----
HTTP/1.1 200 OK
Server: nginx
Date: Fri, 23 Aug 2019 22:12:39 GMT
Content-Type: text/html; c
-----

My PushSaver app does not display any notification.
(a simple "test" notification")

I also tried by changing &d=a to instead specify my device name and also tried my device id.

Can you help me with correct configuration?

Also eventually I would like to change from http to https
What changes are needed to any of the PUT parameters above, other than
using https:
Host: api.pushover.net:443

Thanks in advance!

User avatar
admin
Site Admin
Posts: 472
Joined: 1. Dec 2014, 12:41
Location: Germany

Re: Getting Push Notification to work from html PUT

Postby admin » 23. Aug 2019, 23:17

api.pushover.net:443
thats wrong.

The api address of pushsafer is

Code: Select all

https://www.pushsafer.com/api
or

Code: Select all

http://www.pushsafer.com/api
DE: Dir gefällt Service und Support! Dann freuen wir uns auf deine Bewertung!
EN: You like Service and Support! Then we look forward to your review!

Pushsafer.com Website - iOS - Android - Windows 10

cdave1252
Posts: 2
Joined: 23. Aug 2019, 21:55

Re: Getting Push Notification to work from html PUT

Postby cdave1252 » 24. Aug 2019, 00:00

Thanks for the speedy reply!

When I implement your correction:
----------
POST /api HTTP/1.1
Host: www.pushsafer.com:80
Content-Type: application/x-www-form-urlencoded
Content-Length: 73
User-Agent: Mozilla/4.0

k=#mykeywithpoundsignsremoved#&d=a&m=Test Notification&t=Test Notification Title
------------

I am getting either an invalid page error (no response) or I get a generic response page back that is titled "Web Server's Default Page" including a message... "You see this page because there is no Web site at this address"

Could this be a port value issue?
What port do I use with the http PUT ... 80?
and what port do I use with the https PUT ... 443?

User avatar
admin
Site Admin
Posts: 472
Joined: 1. Dec 2014, 12:41
Location: Germany

Re: Getting Push Notification to work from html PUT

Postby admin » 24. Aug 2019, 10:07

do not use www. in the host

For http use port = 80 and for https = 433
DE: Dir gefällt Service und Support! Dann freuen wir uns auf deine Bewertung!
EN: You like Service and Support! Then we look forward to your review!

Pushsafer.com Website - iOS - Android - Windows 10


Who is online

Users browsing this forum: No registered users and 9 guests