How to listen port on Android app in the background? (receiving google auth token)
Unsolved
Mobile and Embedded
-
Accordingly to this guide I built connection to google services in my app. Everything works great except one thing. When time comes to authorization, my app opens link in default browser. When I accept my login in browser, google should send me reply with token on specific address(localhost:8080/cb in my case), and after this redirects to a page with success message. In Desktop everything works exactly like that but when it comes to android my app goes backround(before it opens default browser) and don't listen to reply untill i open my app, and because of this google can't send me reply and looks bad(for user) with endless progress bar. How can i make my adroid app listen port for reply in background?