Hi,
I am just testing a concept. Here is what I am planning to do
Using B4J and AbMaterial, I will create a Web application
The Web application will have a Login Screen, it validates the user and takes the user to the home page
The above application will be used by the users via any web browsers
I will be calling the same web application from an B4A android app too. In the B4A app, I will be using a WebView and the webview will load the the above ABMAterial application.
Now comes the interesting part
From the android app, I would like to pass the username and password to the ABMaterial Webapp (Webpage)
For eg: the url will be something as follows http://mydomainname:51042/Test/AndroidHomePage?Username=MyUserName&Password=MyPassword
My requirement is that, when the url is invoked from the B4A android app, I don't want the user to be prompted for a username and password, instead it will be passed internally from the B4A Android app to the ABMaterial app secretly. (The user is already validated in the B4A app itself). For those users who access the AbMaterial application directly from Web browsers should be prompted for username and password and then validated.
I do not know, how ABMApplication can handle this ie for some users login page should be there and for some users NO login page. For this to happen, may be I can use 2 different landing pages ie one for Web users and one for B4A app users. In any case, ABMApplication should be aware of the username (either passed as parameters, or the user typed and logged in).
I do not know when I am looking for something impossible ?
Hope that I was able to explain what I am looking for.
Any ideas will be appreciated.
I am just testing a concept. Here is what I am planning to do
Using B4J and AbMaterial, I will create a Web application
The Web application will have a Login Screen, it validates the user and takes the user to the home page
The above application will be used by the users via any web browsers
I will be calling the same web application from an B4A android app too. In the B4A app, I will be using a WebView and the webview will load the the above ABMAterial application.
Now comes the interesting part
From the android app, I would like to pass the username and password to the ABMaterial Webapp (Webpage)
For eg: the url will be something as follows http://mydomainname:51042/Test/AndroidHomePage?Username=MyUserName&Password=MyPassword
My requirement is that, when the url is invoked from the B4A android app, I don't want the user to be prompted for a username and password, instead it will be passed internally from the B4A Android app to the ABMaterial app secretly. (The user is already validated in the B4A app itself). For those users who access the AbMaterial application directly from Web browsers should be prompted for username and password and then validated.
I do not know, how ABMApplication can handle this ie for some users login page should be there and for some users NO login page. For this to happen, may be I can use 2 different landing pages ie one for Web users and one for B4A app users. In any case, ABMApplication should be aware of the username (either passed as parameters, or the user typed and logged in).
I do not know when I am looking for something impossible ?
Hope that I was able to explain what I am looking for.
Any ideas will be appreciated.
Last edited: