title: iOS 14 Widget: Click item to open app page on Cordova
body: <p>I have a Project which is build on Cordova, recently I have developed the widget for ios 14.
  Target: when the user click on the widget Article Item, I want console.log() or catch the URL on the Cordova project so that I can user redirect to the Article Page.</p>
  <p>In the project Already code exist which takes care of deeplink. But whenever, I click on the widget item My app launches.
  For Example : if click on the article link  from the Slack Application. User will land on the corresponding Article.</p>
  <p>I am using  this plugins
  <a href="https://github.com/bayard-lacroix/cordova-universal-links-plugin" rel="nofollow noreferrer">cordova-universal-links-plugin</a>, <a href="https://www.npmjs.com/package/cordova-plugin-customurlscheme" rel="nofollow noreferrer">cordova-plugin-customurlscheme</a></p>
  <p>Regarding the Widget Native code I followed the documentation <a href="https://developer.apple.com/documentation/widgetkit/creating-a-widget-extension" rel="nofollow noreferrer">Creating widget</a>
  and i am using the <a href="https://developer.apple.com/documentation/SwiftUI/Link" rel="nofollow noreferrer">Link</a> method WidgetFamily.systemMedium or WidgetFamily.systemLarge, for other widgets  i am using
  <a href="https://developer.apple.com/documentation/SwiftUI/View/widgetURL(_:)" rel="nofollow noreferrer">widgetURL(_:)</a></p>
  <pre><code>Link(destination: URL(string: urlString)!,label: {
                     Text(article.Title != nil ? article.Title! : &quot;test&quot;)
                         .lineLimit(3)
                         .font(.system(size: 14, weight: .semibold, design: .default))
                         .padding()
                 })
  </code></pre>
  <p><code> .widgetURL(URL(string: article.URL != nil ? article.URL! : &quot;&quot;))</code></p>
  <p>on cordova APP I have</p>
  <pre><code>// Custom url scheme : cordova-plugin-customurlscheme
      window.handleOpenURL = url =&gt; {
        setTimeout(() =&gt; {
          main.onOpenApplicationLinks(url)
        }, 0)
      }
  </code></pre>
  <pre><code> // Universal Link Cordova Plugin
      universalLinks.subscribe('openPath', (eventData)=&gt; console.log(eventData))
  </code></pre>
  <p>How can Catch the URL or Log the URL on the cordova App
  Thanks in Advance</p>