A
A
Alexander Solovkin2020-09-12 10:09:05
Android
Alexander Solovkin, 2020-09-12 10:09:05

How to store android tokens while debugging?

I'm debugging an android app. The application uses Web service access tokens. If you store tokens in SharedPreferences, then when you restart from the IDE (I use Visual Studio), SharedPreferences is overwritten along with reinstalling the entire application. You can invent crutches, for example, store them in a file on external media, but this is not good in a product. What to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2020-09-12
@firedragon

I would make a condition for debugging and selling. And in debugging, hardcoded tokens, or would redirect to a local proxy if you often reset the state of the emulator

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question