uniqush / uniqush-push

Uniqush is a free and open source software system which provides a unified push service for server side notification to apps on mobile devices.
http://uniqush.org
Apache License 2.0
1.54k stars 201 forks source link

How to modify payload size from 2048 bytes to 4096 bytes? #239

Open sahibzadafahad99 opened 6 years ago

sahibzadafahad99 commented 6 years ago

I want to install uniqush from docker build and also want to change payload size from 2048 to 4096 bytes. I need payload size 4096 bytes inside docker container, can any one please guide me how can i change it ?

TysonAndre commented 6 years ago

To increase the maximum APNS payload size from 2048 to 4096, you must use apple's APNS protocol instead of the binary protocol. By default, the binary protocol is used.

  1. you must add bundleid=com.myapp to the query params in a call to /addpsp (Where your app build's bundleid for that environmentis com.myapp).
  2. Every time you send a push with /push, pass uniqush.http2=1

More details are found in https://github.com/uniqush/uniqush-push/issues/157#issuecomment-354528873