j3k0 / cordova-plugin-openwith

Get your Cordova App in the O.S. "Share" menu on iOS and Android
MIT License
138 stars 114 forks source link

change hook triggering iosAddTarget.js. #72

Closed devtobo closed 4 years ago

devtobo commented 5 years ago

Problem: If the plugin is already installed, iosAddTarget.js will not be triggered. You have to remove and re add the plugin each times.

These issues are related: https://github.com/j3k0/cordova-plugin-openwith/issues/60 https://github.com/EternallLight/cordova-plugin-openwith-ios/issues/19

Solution, change hook from after_plugin_install to after_plugin_add which is triggered even if the plugin is already installed