For login, I am making the following API call
AuthorizationManager.authorize(
AuthorizeRequest.Builder(requestContext)
.addScopes(*scopes)
.build()
)
private val scopes = arrayOf(
ProfileScope.profile(),
ScopeFactory.scopeNamed("photos::images:read")
)
The authorize call works fine on android 13 and below, but on some android 14 devices (Moto g84 and Pixel 6), I do not receive any response back.
On debugging the amazon library, I found that inside
ThirdPartyAuthorizationHelper
class, the call
results = this.startAuthorizationWithService(context, allScopes, extraParameters);
doesn’t return any response, however for android 13 devices the same API call returns an empty Bundle object.
Because of this, the below line fails to execute in android 14 devices, which is responsible for launching the browser for SSO:
ThirdPartyAuthorizationHelper.this.authorizeWithBrowser(originalRequest, context, context.getPackageName(), clientId, allScopes, listener, extraParameters, appInfo);
Note: Target SDK for our app is 34