GithubHelp home page GithubHelp logo

isabella232 / notification-examples-ios10 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from clevertap/notification-examples-ios10

0.0 0.0 0.0 21.81 MB

Swift and Objc example Notification Service Extension projects

License: MIT License

Objective-C 51.87% Ruby 2.43% Swift 45.69%

notification-examples-ios10's Introduction

iOS 10 Rich Push Notification Example Projects

push1 push2

Rich push notifications are enabled in iOS 10 via a Notification Service Extension, a separate and distinct binary embedded in your app bundle.

First, enable push notifications in your main app.

Second, create a Notification Service Extension in your project. To do that in your Xcode project, select File -> New -> Target and choose the Notification Service Extension template.

notification service extension

Then, when sending notifications via APNS:

  • include the mutable-content flag in your aps payload (this key must be present in the aps payload or the system will not call your app extension)
  • add custom key:value pair(s) to the payload with the necessary data to construct the download url for the media you want to display (your app extension code will then read these key-value pairs to initiate the media download on the device). Apple supports images, video, audio and gif.

When using the CleverTap Dashboard to send push:

  • select Advanced
  • activate Rich Media
  • add link to the image

clevertap dashboard

See an example Swift project here.

See an example Objective-C project here.

notification-examples-ios10's People

Contributors

aditi3 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.