Posts

Post not yet marked as solved
0 Replies
1.2k Views
Hello I have an application with several webviews. I would like to intercept web notifications for print in the console.I have already written a javascript code for intercepting web notification and print.The problem is that I feel that we can not enable web notification in a WKWebview. When I injectwindow.Notification.permissioni get alwaydefaultordenied. I will like getgranted,how can I do to enable the webview for permission?I just need to know how to allowwindow.Notificationbecause all the rest of my code is ready, that's the only thing I miss.I know that with the UIWebview it is possible but it is deprecated so I do not want to use it. For UIWebview there is a private APIWebNotificationProvider, is there the equivalent for WKWebview?I've been looking for a few weeks and can not find a solution
Posted
by emoonadev.
Last updated
.