1
votes

I'm able to test push notification using Apple Watch simulator and the "PushNotificationPayload.apns" file by selecting Notification:

enter image description here

How to test push notification on the actual Apple Watch? --> I've tried to use exact steps for simulator. But the Apple Watch will just launch the app, bypassing the notification view.

2

2 Answers

3
votes

The APNS file is available only for testing in the simulator. It doesn't work on a real device. You'll have to test push notifications the same way you would for an iOS app: actually sending a push notification to the device.

2
votes

There is a simple process to test the push notification on Apple Watch. It is same as in iPhone. Also Inside your iPhone -> Apple Watch-> Notifications -> Mirror iPHONE alerts From-> turn on your notification.

There are following things which you need to take care while testing the Push notification on Watch:-

1) IPhone should not be active and Watch should be active.

2) IPhone and watch both should not be active.

3) IPhone and watch both should not be deactive.