Currently, I am developing a web application using AngularJS 1.7. The app runs smoothly on Safari with iOS versions 12, 14.0, and 14.1. However, upon upgrading my iOS to version 14.2/14.3 (tested on both), I encountered the following error:
Error: ReferenceError: Can't find variable: webkit
This issue arises when attempting to call webkit as shown below:
try {
webkit.messageHandlers.callback.postMessage(JSON.stringify(userData));
} catch (err) {
console.log('There was some problem sending message native app to IOS');
}
Although I am not well-versed in iOS native development, it seems that the callback function remains unchanged, considering its successful functionality on earlier iOS versions. Any suggestions or insights on this matter would be greatly appreciated.