Skip to content
This repository has been archived by the owner on Aug 17, 2020. It is now read-only.

How to use plugin / event in cordova.. #22

Open
wa05 opened this issue Dec 3, 2019 · 3 comments
Open

How to use plugin / event in cordova.. #22

wa05 opened this issue Dec 3, 2019 · 3 comments

Comments

@wa05
Copy link

wa05 commented Dec 3, 2019

Hi, I can't listen to the event

<widget id="com.mundoit.rosganet" version="1.2" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
 <universal-links>
        <host name="rosganet.com" scheme="https">
            <path event="ul_myExampleEvent" url="/comprar/*" />
        </host>
        <host name="*.rosganet.com" scheme="https">
            <path event="ul_myExampleEvent" url="/comprar/*" />
        </host>
    </universal-links>
</widget>
if (window.universalLinks || window.cordova.universalLinks || 
       window.cordova.plugins.universalLinks) {
      console.log('working')
}

It never reaches the console.log() ..

@textsteph
Copy link

I'm having the same issue with iOS, but not with Android - the link is correctly followed into the app, however the subscribe events don't seem to be called?

@chinieer
Copy link

I'm having the same issue with iOS, but not with Android - the link is correctly followed into the app, however the subscribe events don't seem to be called?

same issue

@CosimoSguanci
Copy link

Hi, I can't listen to the event

<widget id="com.mundoit.rosganet" version="1.2" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
 <universal-links>
        <host name="rosganet.com" scheme="https">
            <path event="ul_myExampleEvent" url="/comprar/*" />
        </host>
        <host name="*.rosganet.com" scheme="https">
            <path event="ul_myExampleEvent" url="/comprar/*" />
        </host>
    </universal-links>
</widget>
if (window.universalLinks || window.cordova.universalLinks || 
       window.cordova.plugins.universalLinks) {
      console.log('working')
}

It never reaches the console.log() ..

Simply using universalLinks without window / window.cordova usage worked for me. Simply copy and paste the example.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants