nordnet / cordova-universal-links-plugin

[DEPRECATED] - Cordova plugin to support Universal/Deep Links for iOS/Android.
https://github.com/nordnet/cordova-universal-links-plugin/issues/160
MIT License
349 stars 529 forks source link

Handle links opened from iOS smart app banner #95

Closed sundbry closed 7 years ago

sundbry commented 7 years ago

This adds a handler for URLs opened from a smart app banner in Safari, as described in the section, "Providing Navigational Context to Your App." It is slightly different from the way this plugin already works, since the URL opened notification has a different code path when it is opened from the smart app banner, than when you click a link to an associated domain and it automatically opens the app.

https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html

Cordova provides the facility for forwarding the call from application:openURL:sourceApplication:annotation: to the plugin's handleOpenURL: method.

nikDemyankov commented 7 years ago

Thank you for your PR! Added some comments, will add those changes after merging. Or you can update the PR, if you want :)