Skip to content

Latest commit

 

History

History
55 lines (44 loc) · 1.82 KB

push_step_4_nf_rich.md

File metadata and controls

55 lines (44 loc) · 1.82 KB
copyright lastupdated keywords subcollection
years
2015, 2020
2020-06-18
push notifications, push notification, notifications, rich media notification
mobilepush

{:external: target="_blank" .external} {:shortdesc: .shortdesc} {:codeblock: .codeblock} {:pre: .pre} {:screen: .screen} {:tsSymptoms: .tsSymptoms} {:tsCauses: .tsCauses} {:tsResolve: .tsResolve} {:tip: .tip} {:important: .important} {:note: .note} {:download: .download} {:java: .ph data-hd-programlang='java'} {:ruby: .ph data-hd-programlang='ruby'} {:c#: .ph data-hd-programlang='c#'} {:objectc: .ph data-hd-programlang='Objective C'} {:python: .ph data-hd-programlang='python'} {:javascript: .ph data-hd-programlang='javascript'} {:php: .ph data-hd-programlang='PHP'} {:swift: .ph data-hd-programlang='swift'} {:reactnative: .ph data-hd-programlang='React Native'} {:csharp: .ph data-hd-programlang='csharp'} {:ios: .ph data-hd-programlang='iOS'} {:android: .ph data-hd-programlang='Android'} {:cordova: .ph data-hd-programlang='Cordova'} {:xml: .ph data-hd-programlang='xml'}

Rich Media notifications

{: #rich-media-notifications}

You can enable Rich Media {{site.data.keyword.mobilepushshort}} in iOS 10 and later. {{site.data.keyword.mobilepushshort}} can be sent with Audio, Video, GIFs, and images.

To set up your application to receive rich push notifications on iOS 10, complete the steps:

  1. In Xcode, select File > New > Target > Notification Service Extension.

  2. On the method didReceive() in the UNNotificationServiceExtension, add the code.

    BMSPushRichPushNotificationOptions.didReceive(request, withContentHandler: contentHandler)
    

    {: codeblock}

To send a Rich Media {{site.data.keyword.mobilepushshort}} from the Push console, ensure that you specify the message, title, subtitle, and attachmentURL fields.