Simulate APNS push notification on Simulator iOS 13.5 | Xcode 11.5 & above | Swift 5 | KtrKathir

Опубликовано: 27 Июль 2020
на канале: iPhone Kathiresan
2,559
51

In this swift tutorial. I discussed about Implementing a push notification (UNUserNotification) and how to simulate a push notification on simulator and build an iOS Application | Xcode 11.5 & above

Now implementing Push notification using UserNotification framework is better and easier than ever.

No real device. No Certificate. No Provisioning profile. No third party website required to push a APNS notification on simulator.

Write a single line of command to push your APNS notification to any of the simulator (iOS 13.5 and above) by device identifier.

Generate an APNS file format https://bit.ly/KtrKathir-APNS

Terminal command format.
$ xcrun simctl push simulator identifier bundle id file.apns

Eg.
xcrun simctl push 0DA13FCF-A6FA-4AA2-95A2-94AADF7EFEAD com.ktrkathir.LeftSideMenu sample.apns

If you like my way of teaching like my video and post a comment to know more What you are expectation.

And also If you have any suggestions post a comment to let me know more.

Subscribe on YouTube : https://bit.ly/KtrKathir
Follow me on WordPress: https://bit.ly/KtrKathir-blog
Like my page on Facebook: https://bit.ly/KtrKathir-fb

#iOS #Swift #APNS #Push notification

Chapters:
0:00 Introduction
0:33 Explanation and implementation
1:08 Implementing Access authorizaton
3:25 Implementing UserNotification Delegates
5:25 Creating sample.apns file
6:09 Run command on Terminal
7:15 Final Output and explanation