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

universal links not able to listen to url for ios #92

Closed divyachandraprakash closed 5 years ago

divyachandraprakash commented 7 years ago
  1. I registered a domain via branch io which is of the form: "xxxx.test-app.link".
  2. The root of this domain has apple-app-site-association file("xxxx.test-app.link/apple-app-site-association"), which contains the correct bundle id, path, etc.
  3. Correct entries are added in config.xml. 4.Entitlement for the domain is added, hence on clicking of url with the above mentioned domain, app opening is triggered.
  4. Unfortunately, universallinks.subscribe is not able to listen to this url for ios, however it is able to do so for android.
nikDemyankov commented 7 years ago

What plugins you are using in the project? And is it Cordova or Ionic project?

divyachandraprakash commented 7 years ago

plugins in the project: "cordovaPlugins": [ "ionic-plugin-keyboard@2.2.0", "cordova-universal-links-plugin@1.2.0", "cordova-plugin-whitelist@1.2.2", "cordova-plugin-file@4.2.0", "cordova-plugin-statusbar@2.1.0", "cordova-plugin-splashscreen@3.2.2", "cordova-plugin-inappbrowser@1.4.0", "cordova-plugin-network-information@1.2.0", "cmt-cordova-plugin-webintent@1.0.0-cmt", "cmt-cordova-plugin-clipboard@0.1.0-cmt", "com.amadeus.plugin.PreferencesPlugin@1.0.2", "cordova-plugin-dialogs@1.2.0", "cordova-plugin-secure-storage@2.2.6-cmt2", "cordova-plugin-geolocation@1.0.0", "cordova-plugin-calendar@4.5.3", "cordova-plugin-x-socialsharing@5.1.1"]

dcz-switcher commented 7 years ago

Hello,

I had a similar issue and it came from config.xml, I had forgot scheme="https"

may be the same with you ?

nikDemyankov commented 7 years ago

@divyachandraprakash sorry for the late reply...

I wanted to know what plugins you are using in order to check, that none of them is overriding one specific AppDelegate method. Seems like they are not doing that.

If app is launched - then configuration is correct. If event is triggered on Android - then the JS side also should be fine.

Try to open platforms/ios/YOUR_PROJECT_NAME.xcodeproj file in Xcode and launch app from it on your test device. In the Xcode find AppDelegate+CULPlugin.m and set a breakpoint on line 24. Then click on the link and see, if it's got triggered.

Also, you can set a breakpoint in CULPlugin.m on line 119. And check, what is send to the JS side.

mowaiskalam commented 7 years ago

@nikDemyankov same issue for me that is closed

artuska commented 6 years ago

I have the same issue for iOS.

When i click on my https link (inside the Gmail app) Android asks me if i want to open it with my app (or with Chrome as the second option) and i choose my app and press «Always» — so, everything works just fine on Android.

But iOS just does not work.

And of course i have all cordova/config.xml set up and i have apple-app-site-association available by direct link.

nordnet-deprecation-bot commented 5 years ago

👋 Hi! Thank you for your interest in this repo.

😢 We are not using nordnet/cordova-universal-links-plugin anymore, and we lack the manpower and the experience needed to maintain it. We are aware of the inconveniece that this may cause you. Feel free to use it as is, or create your own fork.

🔒 This will now be closed & locked.

ℹ️ Please see #160 for more information.