Implement push notifications
Last updated
Was this helpful?
Last updated
Was this helpful?
To implement push notifications in our app we need to create a .p8 key file from and setup the settings for the notification in the dashboard.
We also need to create a provisioning profile for the app because push notifications don't work with a wildcard provisioning profile.
In the MBurger dashboard under Settings > Info & Features you can see two fields that you will need to setup your app to receive push notifications from MBurger:
Push token
Project topic for push
The first one identifies your MBurger project and will be used to setup the service in your didFinishLaunchingWithOptions
, the second one will be used to register the token of your device once you obtain one from APNS
.
Add this to your AppDelegate:
If you want more information about how push notifications work on iOS, visit the .
To create a new Firebase project, please reference documentation, then add these dependencies to your project at the latest version available: