You can also use sim(payload: ...) or sim(deviceToken: ...) global functions directly in the code. However it might cause issues when code is not deactivated in production version of your application. Be careful.
License
The project is available as open source under the terms of the MIT License.
PushNotificationSimulation
PushNotificationSimulation
helps in simulating push notifications in the application during development.Installation
Using Cocoapods with Podfile:
or Carthage and add a line to
Cartfile
:or Swift Package Manager (from Xcode 11):
and add
Requirements
iOS 11.0
Initialization
Modify your
AppDelegate.swift
file:Import
PushNotificationSimulation
framework (if needed):Implement
PushNotificationSimulation
protocol:Usage
Using breakpoints with debugger command (suggested approach).
Push notification example:
Device token example:
You can also use
sim(payload: ...)
orsim(deviceToken: ...)
global functions directly in the code. However it might cause issues when code is not deactivated in production version of your application. Be careful.License
The project is available as open source under the terms of the MIT License.