I am trying to authenticate in my app using oauth 2.0 with custom redirect_uri
https://url&redirect_uri=com.A.B.C://redirect
It works fine on most of the Android phones. However, on few Android phones like OnePlus2, LG K8 V I am getting following exception while making HttpUrlConnection.
MalformedUrlException: Unknown Protocol: com.A.B.C
How should it be handled in these devices ?