Push messaging for iOS
-
Build your iOS app through Unity Editor and open Unity-iPhone.xcodeproj in your Xcode IDE.
-
Select your main app target (Unity-iPhone), under Capabilities enable Push Notifications.
-
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
-
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. -
Download the WebEngageNotificationService.unitypackage.
-
Import the downloaded unitypackage into your Unity project through
Assets > Import Package > Custom Package....
-
Build your iOS app through Unity Editor and open Unity-iPhone.xcodeproj in your Xcode IDE.
-
Verify that NotificationService extension is added and linked to your main app target.
Rating and Carousel Push Notifications
-
Add the App Bundle ID
<your-bundle-identifier>.NotificationViewController
, enable Push Notifications, App Groups and add the groupgroup.<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. -
Download the WebEngageNotificationContent.unitypackage.
-
Import the downloaded unitypackage into your Unity project through
Assets > Import Package > Custom Package....
-
Build your iOS app through Unity Editor and open Unity-iPhone.xcodeproj in your Xcode IDE.
-
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.
-
Remove the WebEngageNotificationService.unitypackage and WebEngageNotificationContent.unitypackage plugins (if added).
-
Build your iOS app through Unity Editor and open Unity-iPhone.xcodeproj in your Xcode IDE.
-
Follow the instructions in WebEngage documentation.
Updated over 5 years ago