Skip to main content
Apple and Google deliver a push only when it is signed with the credentials of the app’s owner. So before pgw can wake your app, pgw must hold your push credentials, and the app must tell pgw its push token when it registers.

What you need for each app

If someone else builds the app, ask them for its bundle ID or package name and the push credentials. pgw needs nothing else from them.

Register the app in pgw

1

Get the push credentials

Follow the page for your platform. Each one gives the pgw app create command for that platform:
2

Create the app record

For Example Corp’s iOS app, the command looks like this:
pgw answers with the new record, without the key:
Keep the id. The other pgw app commands take it, and pgw app list shows it again.
3

Add the SIP account in the app

The account is the user’s normal account at the PBX. What you add is the outbound proxy, which sends everything through pgw, with TLS as the transport and push notifications turned on:

Check that it works

After the app registers, list the bindings:
The list shows a binding for the account. To check your credentials without placing a call, send the device a silent test push:
pgw prints the push service’s answer. pgw checks only the format of your credentials when you create the app, so this push is the first time that Apple or Google checks them.

If it doesn’t work

For other symptoms, see Troubleshooting.

Settings for one app

See Call delivery settings for what the delivery mode changes.

Next steps

iOS apps

Create the APNs key and register an iOS app.

Android apps

Create the Firebase service account and register an Android app.

Integrate your app

Add push support to an app that you build yourself.