When i run the app in ios 8 Simultor, it is showing alert do you want to allow push notifications and in settings i am able to see push notification enabled. So here can we send push notifications to the simulator? is it possible?
Asked
Active
Viewed 8,061 times
6
-
Check this answer http://stackoverflow.com/a/25943924/1753005 – Jayprakash Dubey Sep 23 '15 at 07:00
-
As of Xcode 11.4, you can simulate remote notifications using a sample push notificaiton payload in simulators. Check this link for more detailed explanation: https://ohmyswift.com/blog/2020/02/13/simulating-remote-push-notifications-in-a-simulator/ – Rizwan Ahmed Apr 20 '20 at 09:45
1 Answers
2
Yes you can check push notification on simulator but you have to use a library in your app Named SimulatorRemoteNotifications. By which by using just 4-5 steps you can test push notification on Simulator.
They Also Provide PODs too
pod 'SimulatorRemoteNotifications', '~> 0.0.3'

Sagar Shirbhate
- 801
- 7
- 17