Push Notifications
Currently Parcelvoy supports sending push notifications to the two largest push notification services (Apple & Google). Since push notifications are a single message type, both services are included inside of a single provider. If you do not wish to send notifications to one platform, just leave that section blank and any devices that fall into the excluded platform will be excluded from sends.
APN (Apple Push Notifications)
Enable In Xcode
To begin, you'll need to add the Push Notification capability to your app in Xcode. Please follow the steps on Apples "Registering your app with APNs" article.
Enable in Apple Developer Portal
- Sign in to the Apple Developer Portal
- Select
Identifiers
under theCertificates, IDs & Profiles
section. - Click on the identifier that corresponds to your app.
- Under Capabilities, scroll down and check the Push Notifications capability.
- Hit save in the top right corner.
Create Token Authentication File
Parcelvoy only supports using a .p8 Token-basen authentication file to enable Apple Push Notification sending. This is the recommended approach by Apple, will let you send notifications to both production and development apps and does not expire.
- Follow the instructions that Apple provides in their Establishing a Token-Based Connection to APNs article.
- Download the .p8 file you are provided.
Setup Parcelvoy
- Select the
APN & Firebase
integration or pick an existing integration. - Open the key you downloaded in a text editor and copy it into the
Key
field. - You can find the
Key ID
in the keys section of your Apple developer account. Make sure to use the key for the same p8 key you downloaded. Copy that in. - The
Team ID
is generated by Apple for your developer account. It can be found in the top right of your Apple developer account when you log in. Copy that in. - Your
Bundle ID
is the identifier for your app. You can find your Bundle ID in the Identifiers section of your Apple developer account or within Xcode MainTarget > General > Identity
. Copy this in as well. - Once these fields are filled, hit save.
Firebase (Google Push Notifications)
Setup Firebase
- Follow Google's Add Firebase to your Android project documentation to get Firebase integrated into your app.
Create Service Account
- Open Firebase, and click on the gear icon next to your project name.
- Navigate to
Project Settings -> Cloud Messaging
- If Firebase Cloud Messaging API (V1) is disabled, then click the kebab menu icon on the top right corner and open the link. On the subsequent page hit Enable.
- Now navigate to
Service Accounts
on theProject Settings
page. - Click
Generate a new private key
. On the warning popup, hitGenerate key
and save the downloaded file.
Setup Parcelvoy
- Select the
APN & Firebase
integration or pick an existing integration. - Open the previously downloaded file in a text editor and copy the contents into the
Server Key
field. - Hit save.