-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android Q beta: Can't start OktaAuthenticationActivity #83
Comments
Hi @janvde, Did you test on the emulator or a real device? I've been testing on the emulator and it is working. Based on the the following list of allowed background starts: OktaAuthenticationActivity meets more than one of those requirements so the issue doesn't look like a background activity restrictions problem. Do you see the following in the logs? Background activity start [callingPackage: package-name, ...] |
I'm running it on a Google Pixel 3. I don't see the |
Thanks for the info. I'll get a real device and see if I can reproduce the issue. |
Hi @janvde. I've tried on a real device and can't reproduce the issue. Did you try using the sample application? One thing to note is that the sdk doesn't allow multiple apps with the same redirect scheme. When trying the sample you should uninstall the previous one, if it is reusing the same redirect scheme. |
Can't reproduce issue on Android 10 release. |
@FeiChen-okta I have the same problem. Android 8 and higher works well, but on Android 7 after calling |
Hi @TuiKiken I don't think the issue is related to this one. Can you open new issue with the logs? When you call sign-in the sdk is trying to open chrome or the compatible browser on your device. Are you testing on a real device or Android 7 emulator? |
* Fixes react native java imports * fix: Adds Swift version to podspec OKTA-371911 <<<Jenkins Check-In of Tested SHA: 81087ea49008251e1cdedd78559ae7f124f2f72c for eng_productivity_ci_bot_okta@okta.com>>> Artifact: okta-react-native * fix: Adds types/index.d.ts into files array OKTA-371431 <<<Jenkins Check-In of Tested SHA: 7b7c2e3b1aa447829c87731df5fb355ae44122ba for eng_productivity_ci_bot_okta@okta.com>>> Artifact: okta-react-native * 1.9.1 changelog (#83) * 1.9.1 changelog * 1.9.1 Update Changelog * 1.9.1 Update Changelog Co-authored-by: Oleg Gnidets <oleg.gnidets@okta.com> * bump package version: 1.9.1 * fix: Fixes "types" parameter in package.json Note for the future: To check whether a file is visible in a package, make `yarn pack` and then `yarn add {path-to-archive}`. OKTA-371431 <<<Jenkins Check-In of Tested SHA: 7420307c4c434bc14c7b83ac12c5575bfcf2f212 for eng_productivity_ci_bot_okta@okta.com>>> Artifact: okta-react-native * chore: Bump package version - 1.9.2 (#92) * fix: Fixes a script to add support of file copying The `build.js` script doesn't preserve file' folder. For example, `types/index.d.ts` is copied into `dist/index.d.ts`. Now it copies into `dist/types/index.d.ts` OKTA-375765 <<<Jenkins Check-In of Tested SHA: 8b66da956f7860891bef5e2b6c3a8b2441d01491 for eng_productivity_ci_bot_okta@okta.com>>> Artifact: okta-react-native * chore: Updates changelog for 1.9.3 (#99) Co-authored-by: Nikita <nikita.avraimov@okta.com> Co-authored-by: NikitaAvraimov-okta <76003913+NikitaAvraimov-okta@users.noreply.github.com> Co-authored-by: Aaron Granick <aaron.granick@okta.com>
I'm on the Android Q beta 6 and it seems that the OktaAuthenticationActivity can't be started due to the restrictions on opening activities from background in Android Q (see https://developer.android.com/preview/privacy/background-activity-starts).
When running
client.signIn(this, null);
the following can be seen in logcat:
I/ActivityTaskManager: START u0 {flg=0x24000000 cmp={packagename redacted}/com.okta.oidc.OktaAuthenticationActivity (has extras)} from uid 10383
but the expected custom tab doesn't appear.
The text was updated successfully, but these errors were encountered: