This behavior is expected if UNNotificationExtensionUserInteractionEnabled is set to false in your extension's Info.plist file.
When this setting is false, the Notification Content Extension does not accept user interactions within the custom view. Consequently, interactive elements such as buttons or switches inside the notification interface will not function. Instead, the system treats any tap on the notification as a standard interaction, which launches the application.
To enable custom handling for buttons or controls within the notification extension:
- Set
UNNotificationExtensionUserInteractionEnabledtotrue. - Implement the specific action handling logic within your
NotificationViewController.
Comments
0 comments
Please sign in to leave a comment.