Watch OS Push notification

Hey there, i created a independent Watch OS app and I configure push notification there.

so on watch simulator I am able to get push notification every time.

but today I test watch app to my real watch series 6 WatchOS 11. I got the permission alert I allowed it, and I am able to get the device token as well now if I try to send push notification to my real watch app I get this logs.

Oct 22, 2024, 11:09:12.024 AM GMT+5 received by APNS Server

Oct 22, 2024, 11:09:12.334 AM GMT+5 discarded as application was not registered

why is that ? is there any body know's ? why i am not receiving remote notification on my real watch instead i get that my application is not register...

Answered by Engineer in 810498022

We are also seeing this as the token is not valid on the device.

Are you certain you are using the latest token returned by the app? When you delete and install a new version of an app, the token will change. During debugging sometimes it gets difficult to keep track of whether you have updated in place or deleted/cleaned the build, etc.

Can you try deleting the app, installing a fresh build, and make sure the token you get from that version is the one you are using.

Can you please share the apns-id of the push that got this error.


Argun Tekant /  DTS Engineer / Core Technologies

hey thanks for the reply here it is.

apns-id : 7ea791ca-ef3e-4d87-9a05-cc11335616ed

Oct 23, 2024, 7:39:44.113 AM GMT+5 received by APNS Server

Oct 23, 2024, 7:39:44.182 AM GMT+5 discarded as application was not registered (if i hover on that i get this as well "The Application is no longer Avaiable on target device"

Accepted Answer

We are also seeing this as the token is not valid on the device.

Are you certain you are using the latest token returned by the app? When you delete and install a new version of an app, the token will change. During debugging sometimes it gets difficult to keep track of whether you have updated in place or deleted/cleaned the build, etc.

Can you try deleting the app, installing a fresh build, and make sure the token you get from that version is the one you are using.

Hey thanks, sure i will try to delete the app and will install the latest one and I will make sure I am using the latest token and will share the result with you after some testing.

thanks for the help :) and please do some help if I will still face any issue as we need to live this app really soon.

Watch OS Push notification
 
 
Q