I'm working with Apple Watch Notifications. I defined my own category "myAppcategory" and passed the same to notification payload. But, still i'm receiving below warning in XCode.
Warning: Notification category "(null)" not found. Define this category or a default category in your storyboard.
And result in watch simulator is below
Can any one help me to fix this issue?
I recently had the same issue. For me it was an invalid push notification payload. If you're using a .apns file (for example the sample one provided for notification controllers) to test make sure it's formatted correctly.
This issue is most probably is caused after a mistaken edit that broke the formatting on the PushNotificationPayload.apns
file. To resolve this issue fix the formatting in your .apns
file.
The most problematic part is when you add data to alert
. Make sure you add comma after each entry, except last one.
"alert": {
"body": "Test message",
"title": "Optional title",
"name": "MyName"
},
Like this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With