1

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.

user1872384
  • 6,886
  • 11
  • 61
  • 103

2 Answers2

3

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.

bgilham
  • 5,909
  • 1
  • 24
  • 39
  • can you please help out with this? http://stackoverflow.com/questions/30252953/how-to-set-apple-watch-code-signing-identity-and-provisioning-profile-for-push-n – user1872384 May 15 '15 at 06:31
  • 1
    I tried to send push notification , it delivered to iPhone device not iWatch . – Nada Gamal Jun 30 '15 at 13:13
  • 2
    @NadaGamal By default it will only go to the Watch if your phone is locked and you are wearing the Watch. If you have an issue beyond that, I'd suggest starting a new question. – bgilham Jun 30 '15 at 13:21
2

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.

Hussain Shabbir
  • 14,801
  • 5
  • 40
  • 56