okta / samples-android

samples-android
https://github.com/okta/samples-android
Apache License 2.0
37 stars 52 forks source link

Custom-Sign-In App has crashed in Android 6.0 and 5.0 O/S #31

Closed nsspl-india closed 3 years ago

nsspl-india commented 5 years ago

Hi Team,

I found an issue that I can't run the custom-sign-in app in android 6.0 (Marshmallow O/S) and 5.0 device (lollipop O/S) and It usually goes crash when the app is started.

So could you please look at this issue ? I will be help if you can provide the solution as soon as possible.I need this urgent.

Thanks !

FeiChen-okta commented 5 years ago

Custom sign in only works on Android 7 and above. This is due to the usage of Java 8 in the authentication SDK.

nsspl-india commented 5 years ago

In the custom-sign-in app, you mentioned minsdk 21, it means that app will work android 5.0 and above. Can you check minsdk version?

FeiChen-okta commented 5 years ago

The build.gradle is set to min 21. But that is wrong. We are working on a library that is compatible with lower android versions. In the mean time you can directly use the REST API endpoint in: https://developer.okta.com/docs/api/resources/authn/#authentication-operations to get a sessionToken.

nsspl-india commented 4 years ago

@FeiChen-okta When could I get compatible with lower android version 21 ? I really need a stable version for low android 21.

FeiChen-okta commented 4 years ago

@nsspl-india You can try using the bazel approach we have added in a separate branch: https://github.com/okta/okta-oidc-android/tree/authn_android Check the readme for more information.

JayNewstrom commented 3 years ago

We've updated the documentation and samples to show how to support Android 21+.