Page 1 of 1

login with "other" deeplink in same browser

PostPosted: Thu Jan 16, 2014 7:03 pm
by stefanoni
We use deeplinking to login in servoy.
Example (you can play arround if you like :-) ):
http://212.112.253.21:8080/servoy-webclient/ss/s/GigDoodle/a/ngjudpd71000p5uiolqh7bffi5

The problem we encounter:

If the user just types an other deeplink in the same session/browser,
Servoy doesn't recognize it as a new deeplink-request. That means the
onSolutionOpen is not fired.

Same if i open a new tab in the same browser.
And same if I close the browser (chrome in my case) !!!

That means, the user only can login with an other deeplink after the session timeout,
or if he is using an other browser (not chrome again).

What I am looking for:
How can I check if the user changed something in the url ?
If I could check this, I could close the solution an give the user a chance to start it again with an
other login-deeplink.

Thank you for any suggestions.

Re: login with "other" deeplink in same browser

PostPosted: Sat May 10, 2014 10:22 am
by stefanoni
hmmm, can some one please give me an idea, if the question was non clear enough, or why nobody has the same problem ?
feel alone :oops:

Re: login with "other" deeplink in same browser

PostPosted: Sat May 10, 2014 10:34 am
by stefanoni
Ok, this are two fiferent deep-Links

http://212.112.253.21:8080/servoy-webcl ... olqh7bffi5

http://212.112.253.21:8080/servoy-webcl ... 6a0q6bbis6

If you start the first one and after this, the second one it doesn't make a difference
If you start the second one after session timeout, or with an other browser (IE instead of Chrome)
it works.

regards

Re: login with "other" deeplink in same browser

PostPosted: Sat May 10, 2014 1:22 pm
by mboegem
Hi Allesandro,

You can't accomplish this with these deep links.
The deep links as they are now pass the argument as a startup parameter.
What happens is that once you've used the first deep link your solution (or better: 'session') will startup using the startup parameter.
If you then click the second deep link it will use the same session and therefore it won't startup and skip the startup parameter.

What you need to do is pass the arguments into a global method and write your deep links like this:
{serverURL}/servoy-webclient/ss/s/{mySolutionName}/m/{myMethodName}/a/{value}

More documentation on deep links can be found here: https://wiki.servoy.com/display/public/DOCS/Web+Client

Hope this helps

Re: login with "other" deeplink in same browser

PostPosted: Mon May 12, 2014 9:41 am
by stefanoni
wow, sometimes Life can be so simple...

I red the documentation before and was just wondering why I should call a function, if i could send parameters.

thank you !