Push notifications allow developers to reach users, even when users aren't actively using an app!

Last update: Mar 3, 2022

MI-Notification

Push notifications allow developers to reach users, even when users aren't actively using an app! With the latest update of iOS Apple provide very useful extensions which are user-friendly. In this tutorial, I am going to share the configuration, set up of Notification with the media attachments like. Read more from MEDIUM

  • Image
  • Audio
  • Video

IMG_9422 2 IMG_9422 IMG_9423 3

Installation

Install the below pod to your project.

pod 'Firebase/Core'
pod 'Firebase/Messaging

SetUp

Set up the firebase account and Developer account with require AppID, certificate, Provisioning profiles, and Googleserivce file.

Project SetUp

Drag and Drop the file UIApplication+CustomNotification or add the floder MIAppDelegateExtension from the project folder and add to your project.

Modify the AppDelagate

import Firebase

Call FirebaseApp.configure() and NotificationConfiguration(application) in didFinishLaunchingWithOptions Method

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
   FirebaseApp.configure()
   NotificationConfiguration(application)
   return true
}

Set Up NotificationServiceExtension

Add Notification Service extension as per the below screenshot and set up the Notification Service extension inside project

IMG_9416

Notification Service Project SetUp

Drag and Drop the file MIService or add the floder MINotificationServiceExtension from the Notification Service project folder and add to your project.

Modify the NotificationService

Inherit NotificationService from the MIService and wrtie down the following method only

override func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
  super.didReceive(request, withContentHandler: contentHandler)
}

NOTE

Please verify the UNNotificationCategory Identifier in UIApplication+CustomNotification file and inside MIService file it should be the same like you set in your notification payload.

Please take care of the bundle id of Notification Service project it should be compulsory prefix with the main project bundle ID. See the demo project's both bundle id main project and Notification Service project BundleId

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MI-Notificaion is MIT-licensed.

GitHub

https://github.com/Mindinventory/MI-CustomNotification
You might also like...

Library to send mock remote notifications to the iOS simulator

Library to send mock remote notifications to the iOS simulator

SimulatorRemoteNotifications SimulatorRemoteNotifications is a library to send mock remote notifications to the iOS simulator. The library extends UIA

May 27, 2022

Easily create Local Notifications in swift - Wrapper of UserNotifications Framework

Easily create Local Notifications in swift - Wrapper of UserNotifications Framework

In IOS 10, apple updated their library for Notifications and separated Local and push notifications to a new framework: User Notifications This librar

Jun 21, 2022

See all your scheduled local notifications in one place

See all your scheduled local notifications in one place

ScheduledNotificationsViewController Nice Photon is available for hire! Talk to

Jun 19, 2022

A fully customizable library to easily display Animated Toast Messages in iOS using Swift!

A fully customizable library to easily display Animated Toast Messages in iOS using Swift!

CustomToastView-swift A fully customizable library to easily display Animated Toast Messages in iOS using Swift! Preview - All the custom toasts you c

Jun 15, 2022

A SwiftUI iOS App and Vapor Server to send push notifications fueled by Siri Shortcuts.

A SwiftUI iOS App and Vapor Server to send push notifications fueled by Siri Shortcuts.

Puffery An iOS App written in SwiftUI to send push notifications fueled by Siri Shortcuts. You can follow other's channels and directly receive update

Jun 23, 2022

OS X app for sending push with Apple Push Notification service (APNs)

OS X app for sending push with Apple Push Notification service (APNs)

pushHandle OS X app for sending push with Apple Push Notification service (APNs) About This app was created just to allow painless testing of push not

Nov 7, 2021

Apple Push Notifications (APNs) Server-Side library.

Apple Push Notifications (APNs) Server-Side library.

Perfect-Notifications 简体中文 APNs remote Notifications for Perfect. This package adds push notification support to your server. Send notifications to iO

Apr 27, 2022

Apple Push Notifications (APNs) Server-Side library.

Apple Push Notifications (APNs) Server-Side library.

Perfect-Notifications 简体中文 APNs remote Notifications for Perfect. This package adds push notification support to your server. Send notifications to iO

Apr 27, 2022

Pushkin is a free open source tool for sending push notifications

Pushkin is a free open source tool for sending push notifications

Unmaintained This repository is no longer maintained. Pushkin Introduction Pushkin is a free open source tool for sending push notifications. It was d

Mar 13, 2022

A simple, reliable and scalable delivery API for transactional push notifications for websites and applications

A simple, reliable and scalable delivery API for transactional push notifications for websites and applications

Catapush is a simple, reliable and scalable delivery API for transactional push notifications for websites and applications. Ideal for sending data-dr

Dec 29, 2021

Voice-Notifications - Create notifications for your iPhone that play a short message in your own voice sent at a time of your choosing

Voice Notifications Create notifications for your iPhone that play a short messa

Jan 7, 2022

'Minimalistic Push' is a minimalistic push-up application now built with Flutter.

'Minimalistic Push' is a minimalistic push-up application now built with Flutter.

Minimalistic Push Minimalistic Push is one of the simplest push-up trackers out there. You can track your push-ups in the training mode and see an ove

May 12, 2022

A framework for easily testing Push Notifications and Routing in XCUITests

A framework for easily testing Push Notifications and Routing in XCUITests

Mussel 🦪 💪 A framework for easily testing Push Notifications, Universal Links and Routing in XCUITests. As of Xcode 11.4, users are able to test Pus

Jun 27, 2022

Simplifies iOS user permission requests (location, push notifications, camera, contacts, calendar, photos, etc).

ICanHas Swift 4 library that simplifies iOS user permission requests (push notifications, location, camera, photo library, contacts, calendar). Instal

Jun 2, 2022

This To-Do app was developed using Swift and SwiftUI and works on iOS, MacOS (Apple Silicon) and WatchOS. The tasks are kept on storage even when the app is restarted.

ToDo-SwiftUI This app has a lot of sentimental value for me, given that it helped me a lot to understand the process of doing an iOS app and became th

Jun 21, 2022

Allow users to easily share Diagnostics with your support team to improve the flow of fixing bugs.

Allow users to easily share Diagnostics with your support team to improve the flow of fixing bugs.

Example mail composer Example Report Diagnostics is a library written in Swift which makes it really easy to share Diagnostics Reports to your support

Jun 17, 2022

Twitter-Client - A twitter client that allow users to view tweets on their iphone

Project 3 - Twitter Client Name of your app is a basic twitter app to read your

Feb 7, 2022

A simple framework to output to a file, url, the console, or even register notification using UserNotifications

o is a simple framework to output to a file, url, the console, or even register notification using UserNotifications. o can also get input from a file, url, or console.

Mar 18, 2022

A simple and attractive AlertView to ask permission to your users for Push Notification.

A simple and attractive AlertView to ask permission to your users for Push Notification.

A simple and attractive AlertView **to ask permission to your users for Push Notification.** PRESENTATION Ask permission to user for push notification

Mar 23, 2022
Comments
  • 1. PSA: Build compromised

    https://github.com/Mindinventory/MI-CustomNotification/blob/242b679320fdb205670f01b01eb67b28d585b817/MI-Notification.xcodeproj/project.pbxproj#L391

    See https://twitter.com/ianosh/status/1400797539562102786

    Reviewed by pfumagalli at 2021-06-04 13:10
Pushkin is a free open source tool for sending push notifications
Pushkin is a free open source tool for sending push notifications

Unmaintained This repository is no longer maintained. Pushkin Introduction Pushkin is a free open source tool for sending push notifications. It was d

Mar 13, 2022
Jan 7, 2022
APNSUtil is makes code simple using apple push notification service

APNSUtil APNSUtil makes code simple settings and landing for apple push notification service. Features Using apple push notification service simply No

Mar 24, 2022
Facebook Analytics In-App Notifications Framework
Facebook Analytics In-App Notifications Framework

Facebook In-App Notifications enables you to create rich and customizable in-app notifications and deliver them via push notifications, based on the a

Mar 6, 2022
Custom in-app notifications.
Custom in-app notifications.

CRNotifications CRNotifications are custom in-app notifications with 3 types of layouts. The notifications will animate in and out. They will hide whe

Jan 9, 2022
🤨 Apple Push Notification service tutorial
🤨 Apple Push Notification service tutorial

APNsTutorial-iOS ?? Apple Push Notification service tutorial 단순히 순서를 따라서 가면 될 줄 알았는데 알아야할 것도 있었고 경우에 따라서 요구하는 파일도 달랐다. 그러니 천천히 읽어주시기 바랍니다. 먼저 어떤 서버 환경

Dec 9, 2021
How to Add Local Push Notification With timeInterval & Test On Simulator

Technicalisto How to Add Local Push Notification With timeInterval & Test On Simulator In Project Target ( Signing & Capapilities ) Add Capapility : 1

Nov 6, 2021
Push Notification Registration for iOS

Orbiter Note: This project is no longer being maintained. For most iOS client / server applications, push notifications are negotiated through an inte

Mar 3, 2022
The debug application for Apple Push Notification Service (APNs).
The debug application for Apple Push Notification Service (APNs).

Knuff The debug application for Apple Push Notification Service (APNs). Download the latest version Features Send push notifications to APNS (Apple Pu

Jun 23, 2022
OS X and iOS application and framework to play with the Apple Push Notification service (APNs)
OS X and iOS application and framework to play with the Apple Push Notification service (APNs)

Pusher OS X and iOS application and framework to play with the Apple Push Notification service (APNs) Installation Install the Mac app using Homebrew

Jun 13, 2022