iOS
Rich Push Notifications are supported on iOS 10+.
For iOS notifications with media attachments to be displayed on device add a Notification Service Extension to your application.
For the most up-to-date documentation, please refer to the SDK documentation.
iOS 10 Media Attachment Integration Steps
- Create a new Notification Service Extension
- File -> New -> Target... from your Xcode menu.
- iOS -> Notification Service Extension -> Next.
- Fill in information and click Finish.
- Implement the NotificationService Extension
- Import 'IterableAppExtensions' Cocoapod into your Notification Extension target:
// If the target name for the notification extension is 'MyAppNotificationExtension' target 'MyAppNotificationExtension' do pod 'IterableAppExtensions' end
- Insert this into your main Notification Extension source file:
#import <UserNotifications/UserNotifications.h> #import <IterableAppExtensions/IterableExtensions.h> @interface NotificationService : ITBNotificationServiceExtension @end
- Import 'IterableAppExtensions' Cocoapod into your Notification Extension target:
3. Create your rich push template by going to Templates--> Create New Template--> Push. Then in the section for iOS 10 Attachment URL, paste in an image url.
Android
Rich push for Android is only supported in Iterable Android SDK's version 2.2.4 and higher (as of March 2018).
For Android, simply pasting an image url in the Android Attachment URL section of your template will suffice.
Note that images for Android should have a 2:1 ratio.
Comments
0 comments
Please sign in to leave a comment.