Skip to content
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

Closed
janvde opened this issue Aug 13, 2019 · 7 comments
Closed

Android Q beta: Can't start OktaAuthenticationActivity #83

janvde opened this issue Aug 13, 2019 · 7 comments

Comments

@janvde
Copy link

janvde commented Aug 13, 2019

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.

@FeiChen-okta
Copy link
Contributor

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:
https://developer.android.com/preview/privacy/background-activity-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, ...]

@janvde
Copy link
Author

janvde commented Aug 14, 2019

I'm running it on a Google Pixel 3. I don't see the Background activity start .. in the logs. If I run the same code on an emulator (Pixel 3 API 27) it works as expected.

@FeiChen-okta
Copy link
Contributor

Thanks for the info. I'll get a real device and see if I can reproduce the issue.

@FeiChen-okta
Copy link
Contributor

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.

@FeiChen-okta
Copy link
Contributor

Can't reproduce issue on Android 10 release.

@TuiKiken
Copy link

TuiKiken commented Jul 6, 2020

@FeiChen-okta I have the same problem. Android 8 and higher works well, but on Android 7 after calling signIn method, my interface freezes and status bar changes color to black. It seems that the pop-up window with the authorization form overlaps my interface, but does not display anything.

My logs looks like:
Screen Shot 2020-07-06 at 16 24 55

@FeiChen-okta
Copy link
Contributor

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?

rajdeepnanua-okta pushed a commit that referenced this issue Dec 14, 2023
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants