Page 1 of 1

Send Image withj Pushsafer Notification

Posted: 3. May 2019, 08:44
by yufretti
Hi,
I need to send a Notification with a little PNG picture. I have coded the image with base64 encoder and I have generated this link:


https://www.pushsafer.com/api?k=[***my*private*key***]&m=Test&p=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAV4AAADICAMAAACXvXnCAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAABsUExURUdwTP///3FzhGRleRkaMSEiOBMUKxobMho .......

The notification are correctly send to my iPhone, but the included image does not arrive.
Where am I doing wrong?
Thanks.

Yuri

Re: Send Image withj Pushsafer Notification

Posted: 3. May 2019, 09:04
by admin
Hi Yuri,

the length of urls are restricted (about 2000 chars)! There are differences in browsers or other system environments.
I recommend you to send the api request as POST, like the examples here

https://www.pushsafer.com/en/pushapi

Regards Kevin