store login and password in webviewer

775 views
Skip to first unread message

Jb84

unread,
Apr 6, 2017, 11:21:47 AM4/6/17
to MIT App Inventor Forum
Hi,
I have a very simple App who call a webpage (webviewer) under a screen 2
This webpage ask for login and password.
Each time you lunch the app log and pass are not save (like on Chrome, ie, firefox...)

How can I ask to webviewer to save data?

Taifun

unread,
Apr 6, 2017, 11:57:30 AM4/6/17
to MIT App Inventor Forum
create your own login screen, store user and password in TinyDB and use this method to login
Taifun

Jb84

unread,
Apr 6, 2017, 2:03:45 PM4/6/17
to MIT App Inventor Forum
Thanks but login and password are already stored in the website sql database.
Does not seems that you method will communicate with website server. Does it ?

Taifun

unread,
Apr 6, 2017, 2:46:33 PM4/6/17
to MIT App Inventor Forum
Does not seems that you method will communicate with website server. Does it ?
no, that method will use user and password, which could have been entered in 2 textboxes in your app and will then do the login using the webviewer together with that webpage
the webviewer itself can't store passwords

Taifun

Message has been deleted

Jb84

unread,
Apr 6, 2017, 3:36:06 PM4/6/17
to MIT App Inventor Forum
I need to make an app with a connect button who redirect (screen 2 in a webviewer) to the member login page of the website.
Login and password are stored in the sql database website server.

How can I do for user do not have to refill log and pass each time?

Very thanks

fishingjr

unread,
Apr 6, 2017, 3:49:06 PM4/6/17
to mitappinv...@googlegroups.com
As Taifun suggested...  Create a Login text box and a password box in your app. Store the LoginTxt and Password in your app (TinyDB) and then inject them into your website for login.  You can even press the Login button on your website...  Follow the example in the link Taifun provided.  The LoginText and Password in your app will need to match your website login credentials.  You will need to type them once into your app, then they are stored in TinyDB.

Taifun

unread,
Apr 6, 2017, 4:01:36 PM4/6/17
to MIT App Inventor Forum
login only once in the app and store user and password in TinyDB, then use the already mentioned solution https://puravidaapps.com/inject.php
on all further runs of the app read user and password from TinyDB and login automatically using the already mentioned solution https://puravidaapps.com/inject.php
Taifun
Message has been deleted

Jb84

unread,
Apr 8, 2017, 9:51:55 AM4/8/17
to MIT App Inventor Forum
Thanks Taifun!
I follow your tutorial and actually user is save !
But unfortunably password not

I copy/past yours codes
Do i miss something?

Taifun

unread,
Apr 8, 2017, 10:14:00 AM4/8/17
to MIT App Inventor Forum
It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

Taifun

Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun. 

Reply all
Reply to author
Forward
0 new messages