manimaran96 / Spell4Wiki

Spell4Wiki is a mobile application to record and upload audio for Wiktionary words to Wikimedia Commons. Spell4Wiki also a multilingual Wiki-Dictionary.
https://commons.wikimedia.org/wiki/Commons:Spell4Wiki
GNU General Public License v3.0
24 stars 14 forks source link

App asks to login everytime #13

Closed tshrinivasan closed 4 years ago

tshrinivasan commented 5 years ago

Make sure the app login is saved and not asked everytime

tshrinivasan commented 5 years ago

check this repo for keeping login across sessions https://github.com/Atul22/wikiAudio

manimaran96 commented 5 years ago

check this repo for keeping login across sessions https://github.com/Atul22/wikiAudio

https://github.com/manimaran96/Spell4Wiki/blob/master/app/src/main/java/com/manimaran/wikiaudio/wiki_api/ServiceGenerator.java#L75

In this line, we getting cookie values after the login. We need to store and re-use the cookie.

manimaran96 commented 4 years ago

Fixed. By using sync adapter - authenticator

Ref : Wiki - Commons App