I am implementing Fit-bit rest-client authorisation in my android application. I use custom tabs for opening fitbit authorization URL like "https://www.fitbit.com/oauth2/authorize?response_type=code&client_id=xxxx&scope=activity&redirect_uri=testing://callbackfitbit&prompt=login?time=time". What normally happens is I get Authorization code in my Activity class. But sometimes as fitbit URL is opened in custom tabs, my application is exited. I don't understand this behaviour.
No log is reported for this behaviour.
Any suggestion may help me understanding this behaviour.