Problem
Push templates (carousel images, background color, font color, and so on) do not display correctly in Push notifications on iOS devices.
Solution
Perform the following steps to resolve the issue:
- Identify the MoEngage SDK version used in your app. To find the SDK version, open your podfile.lock, search for MoEngage-iOS-SDK, and note the version listed.
- Verify whether the Notification Service Extension and Notification Content Extension are implemented in your app.
- If Notification Service Extension is not implemented, follow the instructions from the appropriate link based on your MoEngage SDK version:
- For projects using MoEngage-iOS-SDK (7.x.x), refer to How to Avoid Common Push Notification Issues on iOS Devices Using iOS SDK version 7.x.x?
- For projects using MoEngage-iOS-SDK (8.x.x), refer to How to Avoid Common Push Notification Issues on iOS Devices Using iOS SDK version 8.x.x?
- For projects using MoEngage-iOS-SDK (9.x.x), refer to How to Avoid Common Push Notification Issues on iOS Devices Using iOS SDK version 9.x.x?
- If Notification Service Extension is already implemented, follow the instructions from the appropriate link based on your MoEngage SDK version and AppDelegate file (Swift, Objective-C):
- For projects using MoEngage-iOS-SDK (7.x.x) and Swift, refer to How to Avoid Common Push Notification Issues on iOS Devices Using iOS Swift version 7.x.x?
- For projects using MoEngage-iOS-SDK (8.x.x) and Swift, refer to How to Avoid Common Push Notification Issues on iOS Devices Using iOS Swift version 8.x.x?
- For projects using MoEngage-iOS-SDK (9.x.x) and Swift, refer to How to Avoid Common Push Notification Issues on iOS Devices Using iOS Swift version 9.x.x?
- For projects using MoEngage-iOS-SDK (7.x.x) and Objective-C, refer to How to Avoid Common Push Notification Issues on iOS Devices Using iOS Objective C version 7.x.x?
- For projects using MoEngage-iOS-SDK (8.x.x) and Objective-C, refer to How to Avoid Common Push Notification Issues on iOS Devices Using iOS Objective C version 8.x.x?
- For projects using MoEngage-iOS-SDK (9.x.x) and Objective-C, refer to How to Avoid Common Push Notification Issues on iOS Devices Using iOS Objective C version 9.x.x?
- If Notification Content Extension is not implemented, follow the instructions from the appropriate link based on your MoEngage SDK version:
- For projects using MoEngage-iOS-SDK (7.x.x), refer to How to Avoid Push Template Issues in iOS Push Notifications (SDK version 7.x.x) When Notification Content Extension is Not Implemented?
- For projects using MoEngage-iOS-SDK (8.x.x), refer to How to Avoid Push Template Issues in iOS Push Notifications (SDK version 8.x.x) When Notification Content Extension is Not Implemented?
- For projects using MoEngage-iOS-SDK (9.x.x), refer to How to Avoid Push Template Issues in iOS Push Notifications (SDK version 9.x.x) When Notification Content Extension is Not Implemented?
- If Notification Content Extension is already implemented, follow the instructions from the link below: