In this app, I send user notification, and ask for repeat.
I have an Apple Watch paired to the iPhone, but the app is purely iPhone.
User notifications are delivered on the watch automatically when the iPhone is locked.
Good, it works.
But I keep receiving a repeated notification even after swiping on the watch to tap the OK ack.
Delegate is set everywhere I invoke the current notification center.
I want repeat only 3 times, so I have a counter decremented each time a notification is triggered. And notification removed if user ack'ed it.
This is done in
This works on the iPhone, but not when phone is locked and notifications show on the watch:
I have an Apple Watch paired to the iPhone, but the app is purely iPhone.
User notifications are delivered on the watch automatically when the iPhone is locked.
Good, it works.
But I keep receiving a repeated notification even after swiping on the watch to tap the OK ack.
Delegate is set everywhere I invoke the current notification center.
I want repeat only 3 times, so I have a counter decremented each time a notification is triggered. And notification removed if user ack'ed it.
This is done in
Code Block userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void)
This works on the iPhone, but not when phone is locked and notifications show on the watch:
the decrement is apparently not done
initial notification keeps showing on the watch even when user has acknowledged it.