Push messaging for iOS

  1. Build your iOS app through Unity Editor and open Unity-iPhone.xcodeproj in your Xcode IDE.

  2. Select your main app target (Unity-iPhone), under Capabilities enable Push Notifications.

  3. Also under Capabilities enable Background Modes and check Remote notifications.

Rich Push Notifications

Enable Push Notifications, App Groups and add the app group group.<your-bundle-identifier>.WEGNotificationGroup to your App ID from your Apple Developer Account. Download and install the updated provisioning profile of your app in your Xcode.

Banner Push Notifications

  1. Add a new App Bundle ID .NotificationService, enable Push Notifications, App Groups and add the group group.<your-bundle-identifier>.WEGNotificationGroup in this newly created App ID from your Apple Developer Account. Download and install the provisioning profile of this App ID in your Xcode.

  2. Download the WebEngageNotificationService.unitypackage.

  3. Import the downloaded unitypackage into your Unity project through Assets > Import Package > Custom Package....

  4. Build your iOS app through Unity Editor and open Unity-iPhone.xcodeproj in your Xcode IDE.

  5. Verify that NotificationService extension is added and linked to your main app target.

Rating and Carousel Push Notifications

  1. Add the App Bundle ID <your-bundle-identifier>.NotificationViewController, enable Push Notifications, App Groups and add the group group.<your-bundle-identifier>.WEGNotificationGroup in this newly created App ID from your Apple Developer Account. Download and install the provisioning profile of this App ID in your Xcode.

  2. Download the WebEngageNotificationContent.unitypackage.

  3. Import the downloaded unitypackage into your Unity project through Assets > Import Package > Custom Package....

  4. Build your iOS app through Unity Editor and open Unity-iPhone.xcodeproj in your Xcode IDE.

  5. Verify that NotificationViewController extension is added and linked to your main app target.

Troubleshooting for Rich Push Notifications

If you are facing integration or build issues with rich-push notification unity plugins, then try adding the extensions and pods manually.

  1. Remove the WebEngageNotificationService.unitypackage and WebEngageNotificationContent.unitypackage plugins (if added).

  2. Build your iOS app through Unity Editor and open Unity-iPhone.xcodeproj in your Xcode IDE.

  3. Follow the instructions in WebEngage documentation.


So, what's next?