Shared publicly  - 
 
I have a Question to all you developers out there.
I have i frontend, backend system. frontend is a android application and backend is a c# based application "database" and authentication server. The communication is normal tcp connection. When Android app connects to backend, it sends a login request. backend evaluates and sends if the authentication was OK or not. nothing fancy just a simple login. my problem begins when a frontend goeas in sleepmode or for some how the connection is blorken. Then the frontend needs to reconnect again. It is not optimized that everytime frontend goes to sleep and then wakeup it have to login ( sends username and password ) all over again and then request the information. Is there any better way to solve my broblem. ?
Any sugestions ?
1
Adam Lundgren's profile photoChristian Grenfeldt's profile photoJohan Eriksson's profile photo
4 comments
 
+Johan Eriksson that solution could work. Then i have to create my own OAuth2 server for registration and the just pass my token with my request.
Thanks
 
Use Intent in the Android.
There is message broadcast when ever the phone. U can use a key (like cookies) to show that the unit still is the same unit without sending logins. This is how FB and G do it. U should check out OAuth 2.0 I think it's called. Google use it alot. Never played with it myself so it might be completely wrong for u
 
Ooh LOL.. Sorry I didn't read everything. :-D
I didnt read at all it seams..
Add a comment...