N.Marzio Posted November 21, 2021 Share Posted November 21, 2021 Hello to all, I would like to save the user credentials (username / password) in a text file on the user's mobile device (android and IOS) how can I do? Are there better alternatives for saving user credentials so they are not always asked for? Thanks Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 21, 2021 Share Posted November 21, 2021 Hello, Are you using a web app or a native app? Quote Link to comment Share on other sites More sharing options...
N.Marzio Posted November 21, 2021 Author Share Posted November 21, 2021 I use the WEb App with Unigui (Does Native App exist with unigui?) Thanks Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 21, 2021 Share Posted November 21, 2021 34 minutes ago, N.Marzio said: Does Native App exist with unigui? No. But you asked the question as if you are using a native application. 1 hour ago, N.Marzio said: in a text file on the user's mobile device You cannot access the user device. Use cookies or storage. Quote Link to comment Share on other sites More sharing options...
N.Marzio Posted November 21, 2021 Author Share Posted November 21, 2021 I tried with cookies, but on Safari, it loses them on restart .... While on Chrome they remain ... How can I write about storage? Is this deleted or not? Thanks Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 21, 2021 Share Posted November 21, 2021 https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage Quote Link to comment Share on other sites More sharing options...
N.Marzio Posted November 21, 2021 Author Share Posted November 21, 2021 Very nice... A Unigui example to read / write on LocalStorage? Thanks Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted November 22, 2021 Share Posted November 22, 2021 11 hours ago, N.Marzio said: Very nice... A Unigui example to read / write on LocalStorage? Thanks Hello, http://forums.unigui.com/index.php?/topic/12306-how-can-i-access-local-storage/&do=findComment&comment=65734 Quote Link to comment Share on other sites More sharing options...
N.Marzio Posted November 22, 2021 Author Share Posted November 22, 2021 Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.