0

How can we keep caches and cookies in native app up to completing a session (example booking tickets) in Retrofit(or other rest calls).

Ex. while booking tickets online, we will keep session up to last step of the process. I need to keep my session in a native app up to the last step of a similar process.

Haem
  • 929
  • 6
  • 15
  • 31
Vimesh c
  • 41
  • 2
  • 10
  • Try to use SharedPrefrences. https://developer.android.com/reference/android/content/SharedPreferences.html – Ankita Sep 14 '17 at 12:06
  • shared preference is not a complete solution for my app.do you know any library for keeping session. – Vimesh c Sep 14 '17 at 12:08
  • read this may be this will help you out. https://stackoverflow.com/questions/9416712/android-session-cookies – Ankita Sep 14 '17 at 12:10
  • Thanks for your replay, this is the way now i am using its slow comparing other rest calls. so that i am searching new way . – Vimesh c Sep 14 '17 at 12:16
  • https://github.com/datatheorem/HandlingCaching-Android – Ankita Sep 14 '17 at 12:20

0 Answers0