In Phonegap 3.x / Cordova 3.x: Is there any hook so that we can check which link the user clicked on our web page.
Reference Information. We have added Google Maps to our cordova app. Google Map comes with "(c) Google Inc." link that we can’t remove. Therefore, when the user clicks the "(c) Google Inc." button, the link appears, the Google Maps refusal appears, and the user does not have the opportunity to return to our iOS application. (There are hardware return buttons on Android and Windows Phone, but not on iOS).
If we could connect to the opening of the URL, we could intercept the call and open the link in the browser in the application or in the system browser, or something like that.
Any solution is welcome - be it JavaScript, Phonegap customization, or Objective-C code. (Also C # / Windows Phone or Java / Android, but, as already mentioned, the problem on these two platforms is not taken into account due to the hardware return button).
PS: Maybe we can open EVERY link in the application browser using the phonegap parameter, which calls links with the CSS class "internal" or something like that. In this case, we just mark our links with the specified class !?
Thank!
source
share