Open lawloretienne opened 4 years ago
The situation of what to do when a user is logged out (and opens a deeplink) has nothing to do with this lib, as it would be the same if you would do the deeplinking without this lib.
Usually what you do is provide a central spot where you check if the deeplink in question can be navigated to without being logged in. In our example code this could be in onCreate
of the DeepLinkActivity
But again the issue is completely separate from using this lib for deeplinking.
If I'm not mistaken the Readme shows examples of how to use this library but doesn't show how to handle the situation where a user is logged out tries to open a deeplink. Where should that logic live that will check if a user is logged in or not? Then after a user signs in , will the deeplink be deferred, will the user be taken to the location of the original deeplink?
Some sample code of how to accomplish this task would go a long way.