Add Push Notification to your app

The first thing you have to do is implement Push Notifications using the UserNotificationsarrow-up-right framework.

circle-info

You will be guided through all the steps needed to have a functional project with the push notifications, if you have already done it you can skip to the Integrate MPush section of this README.

Create a key

Go to developer.apple.comarrow-up-right with an admin account and under Keys -> All click the plus button in the top right corner.

Specify a name for your key and enable Apple Push Notifications service (APNs).

Key creation 2
Key creation 1

Then download the .p8 key file created and upload it in our dashboard.

circle-info

Note that the key created is valid for all the apps of your profile and can't be re-downloaded, keep it in a safe place because you will likely have to resue it.

Add notifications to your app

Now go to your app settings under Identifier -> AppId and enable the notifications services following the steps. After that, you need to update the Provisioning Profile for your app or create a new one because push notifications don't work for applications signed with a wildcard Provisioning Profile.

Now it's finally time to move to XCode. Open your project and enable push notifications in the capabilities tab.

XCode-capabilities

In AppDelegate.swift add

Last updated