Reputation: 2069
InAppBrowser works fine on android but on iOS I get the following error:
Native: InAppBrowser is not installed or you are running on a browser. Falling back to window.open.
this.inAppBro.create('https://www.google.com', `_blank`);
on Android the URL opens fine but on iOS I get the error saying it isn't installed and I'm not sure why.
"cordova-plugin-inappbrowser": "^4.0.0",
9.0.0 ([email protected]) 6.0.1
Upvotes: 4
Views: 4881
Reputation: 2541
Probably the build process didn't complete correctly. Build the project again after deleting the node_modules
, plugins
& www
folder in your root project folder. Then run ionic cordova build ios --prod
After the successful build, Go to -> platforms->iOS->"your project name folder"->Plugins
and ensure that cordova-plugin-inappbrowser
folder is present there
Upvotes: 2