elitevenkat Active Member Licensed User Longtime User Apr 15, 2018 #1 android/forum/threads/webvie And as usual erel had replied. However I can not figure out how to get a response from the called webpage. My requirement is A webpage to be called which will display accept username and password and validate.the web page will wait for the user input indefinitely I want to get back if the login was success or not in my b4a app when the user submits the webpage. Should I use webvirwextra or browser or what method to use to achieve the response
android/forum/threads/webvie And as usual erel had replied. However I can not figure out how to get a response from the called webpage. My requirement is A webpage to be called which will display accept username and password and validate.the web page will wait for the user input indefinitely I want to get back if the login was success or not in my b4a app when the user submits the webpage. Should I use webvirwextra or browser or what method to use to achieve the response
Erel B4X founder Staff member Licensed User Longtime User Apr 16, 2018 #2 The actual solution depends on the specific web page. If it redirects to a different page after the user logged in then you can find it by handling the OverrideUrl event. Upvote 0
The actual solution depends on the specific web page. If it redirects to a different page after the user logged in then you can find it by handling the OverrideUrl event.
elitevenkat Active Member Licensed User Longtime User Apr 16, 2018 #3 yes the web page redirects to another page. kindly tell me how to get the login details from the initial web page in overrideurl event. any coding example will be high;y appreciated. Upvote 0
yes the web page redirects to another page. kindly tell me how to get the login details from the initial web page in overrideurl event. any coding example will be high;y appreciated.
Erel B4X founder Staff member Licensed User Longtime User Apr 16, 2018 #4 You cannot get the login detail from OverrideUrl. You can only find out that the page was redirected. Upvote 0
You cannot get the login detail from OverrideUrl. You can only find out that the page was redirected.
elitevenkat Active Member Licensed User Longtime User Apr 16, 2018 #5 From the web page when redirecting if I echo some value say 1 or 0 can I get it back as response in the webview ? To achieve that how should i proceed. Can I get help in that direction please ? Upvote 0
From the web page when redirecting if I echo some value say 1 or 0 can I get it back as response in the webview ? To achieve that how should i proceed. Can I get help in that direction please ?
G gkoehn Member Licensed User Apr 16, 2018 #6 Are you trying to login via OAuth? If so you may want to read... https://developers.googleblog.com/2016/08/modernizing-oauth-interactions-in-native-apps.html If I understand it right... Some OAuth providers will redirect and when they do, they redirect to a url and pass a code as a parameter to that url. Then if you can know what url they redirect to, you just have to parse the parameter for information. Upvote 0
Are you trying to login via OAuth? If so you may want to read... https://developers.googleblog.com/2016/08/modernizing-oauth-interactions-in-native-apps.html If I understand it right... Some OAuth providers will redirect and when they do, they redirect to a url and pass a code as a parameter to that url. Then if you can know what url they redirect to, you just have to parse the parameter for information.