How to test local notifications in Apple Watch simulator?

I am developing an iOS application that will show local notifications and local interactive notifications when they are in the background. I want to check how it appears in the paired Apple Watch when the device is locked. Since I don't have an Apple Watch, how can I check this in Simulator?

+4
source share
1 answer

If you receive a notification about using the iOS application using the simulator, add some logic, for example, a notification about the launch after 5 seconds of IBAction. Just block your iOS simulator using (⌘ + L command). Now the notification will be displayed on both devices.

0
source

Source: https://habr.com/ru/post/1613770/


All Articles