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

[Ask] Recommended way to distinguish app launch with and without universal link #107

Closed olszowka-cargurus closed 5 years ago

olszowka-cargurus commented 7 years ago

My app needs to have two different behaviors depending upon whether it was launched as a result of clicking on a universal link or launched directly. Currently, the ondeviceready event handler creates the subscription to the universallinks event and also sets a 10ms timeout for the default behavior to begin. Furthermore, the universallinks event handler sets a flag which prevents the default behavior.

My solution appears to work, but feels kludgy to me? Is there a better practice? If not, I'm willing to update the documentation to clarify.

olszowka-cargurus commented 7 years ago

Follow up: The 10ms delay worked fine on an Android phone, but wasn't long enough on iOS. I upped it to 75 ms and then it worked on iOS. I would prefer a solution which didn't depend on any racing, e.g. a flag which could be tested in ondeviceready to immediately determine whether the app was launched using a universal link or directly.

eg271 commented 6 years ago

I also have the same situation. Any answer on this?

olszowka-cargurus commented 6 years ago

I have heard nothing.

We decided to stop using universal links, anyway, so I haven't been pursuing it.

--PeterO

From: eg271 notifications@github.com Reply-To: nordnet/cordova-universal-links-plugin reply@reply.github.com Date: Tuesday, October 17, 2017 at 12:56 PM To: nordnet/cordova-universal-links-plugin cordova-universal-links-plugin@noreply.github.com Cc: Peter Olszowka polszowka@cargurus.com, Author author@noreply.github.com Subject: Re: [nordnet/cordova-universal-links-plugin] [Ask] Recommended way to distinguish app launch with and without universal link (#107)

I also have the same situation. Any answer on this?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/nordnet/cordova-universal-links-plugin/issues/107#issuecomment-337284514, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AQzbhH0UuAFuiSxTcqmEetFsmxk4TUL1ks5stNxXgaJpZM4Mx4DX.

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.