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

SDK initialization throws in Android Instagram webview #140

Open
kincaidoneil opened this issue Dec 9, 2023 · 1 comment
Open

SDK initialization throws in Android Instagram webview #140

kincaidoneil opened this issue Dec 9, 2023 · 1 comment

Comments

@kincaidoneil
Copy link

In my testing, navigator.permissions is undefined in the Instagram webview on Android (Chrome 119 UA/Android 14/Pixel 8).

In this scenario, the initializing the SDK throws an error:

if (!navigator || !navigator.permissions) {
return reject(new RadarLocationError('navigator.permissions is not available.'));
}

Could this set the authorization to NOT_DETERMINED instead of throwing?

@kochis
Copy link
Collaborator

kochis commented Dec 9, 2023

Hi @kincaidoneil,

Thanks for opening the issue. I agree, I think that makes sense to treat a missing navigator or permissions as NOT_DETERMINED. We'll try and work these changes into a future release (can leave this issue open for the meantime).

The resulting error also should not affect the actual initialization of the SDK, as the call to get permissions should be happening asynchronously, but let me know if you're seeing otherwise.

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

2 participants