Can I test local notifications on the WatchOS 2 Simulator?
I am Googling a lot to find out way to check local notifications on the WatchOS Simulator because I don't have an iWatch. Right now I have implemented local notification but due some reason notification is shown on iPhone simulator but not on iWatch (WatchOS 2) simulator.
I have added following code in applicationDidFinishLaunchingWithOptions:
It is not possible to have a Watch app simulator react to a UILocalNotification. However, it is almost identical to reacting to a push notification, except it gets routed through a couple of different methods.
Run your watch app on simulator, from iPhone simulator schedule the notification and lock the iPhone simulator screen, keep the watch simulator active, in that case when notification is triggered , it will be delivered on your watch simulator. Same will be the case when you will test on actual devices.
Asked in February 2016Viewed 1,154 timesVoted 12Answered 2 times