okta / samples-android

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

Redirection not working in android release build #61

Closed roym5252 closed 3 years ago

roym5252 commented 3 years ago

Okta redirection is not working in android release build with minifyenabled set to true

defaultConfig {
        applicationId "com.companyname.appname"
        manifestPlaceholders = [
                appAuthRedirectScheme: 'com.okta.companyname-prod'
        ]
    }

It is properly getting redirected in release build if I set minifyenabled false. If it is set to true then the progress bar is displayed infinitely.

NikitaAvraimov-okta commented 3 years ago

Created internal story to research this issue, ref OKTA-379061. In the meantime you can try editing your proguard config to keep library untouched: -keep class com.okta.** { *; }

NikitaAvraimov-okta commented 3 years ago

It is expected from developers to add okta to proguard exceptions. Please feel free to reach out if you have other questions.