I got notification filtering permission from appStoreConnect, i.e. com.apple.developer.usernotifications.filtering, but not able to suppress notification even after setted contentHandler(UNNotificationContent()) and contentHandler(UNMutableNotificationContent()). Added entitlements in both extension and main app, also in signing profile these Entitlements are visible, what other changes should I do?
Got com.apple.developer.usernotifications.filtering entitlement still not able to suppress notifications
I got notification filtering permission from appStoreConnect, i.e. com.apple.developer.usernotifications.filtering, but not able to suppress notification even after setted contentHandler(UNNotificationContent()) and contentHandler(UNMutableNotificationContent()).
To clarify, you suppress content by either:
-
Returning "NULL" in the content handler (this may not be possible in swift).
-
Setting title, subtitle, and body to an empty string (all three).
Added entitlements in both extension and main app, also in signing profile these Entitlements are visible, what other changes should I do?
Are you sure you've configured the signing for this properly? You can use the process in this post to confirm that your app is signed properly. Note that while that particular post is specifically about DriverKit, the verification process is exactly the same for apps.
__
Kevin Elliott
DTS Engineer, CoreOS/Hardware