Web browser already open or No matching activity - React Native Android Social Authentication
See original GitHub issue✅ Prerequisites
- Did you perform a cursory search of open issues? Is this bug already reported elsewhere? No open issues
- Are you running the latest SDK version? Yes
- Are you reporting to the correct repository (
magic-sdk
)? Yes
🐛 Description
My RN project is built with React Native CLI (Not expo) and I had to install unimodules to make support for the magic link library. In iOS, all works fine but I got a weird error when I do the social authenticate in android.
🧩 Steps to Reproduce
When the user tries to do the social authenticate in RN android.
🤔 Expected behavior
Social authentication popup should have appeared for the relevant domains (google, Facebook, etc.)
😮 Actual behavior
I am getting this error when I try to authenticate for the first time. __
This error occurs when I try to attempt more than once. __
💻 Code Sample
import {Magic} from '@magic-sdk/react-native';
import {OAuthExtension} from '@magic-ext/react-native-oauth';
const magic = new Magic('API_KEY', {
extensions: [new OAuthExtension()],
});
await magic.oauth.loginWithPopup({
provider: 'google',
redirectURI: 'quantappfinance://quantapp` // Android Deep Linking URL
});
🌎 Environment
Software | Version(s) |
---|---|
@magic-sdk/react-native |
4.3.1 |
@magic-ext/react-native-oauth |
0.3.0 |
React Native |
0.64.0 |
Node version |
12.19 |
Browser | RN Webview |
yarn |
1.9.2 |
Operating System | Android |
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:14 (8 by maintainers)
Top Results From Across the Web
Can't use WebBrowser in Android on SDK 30+ - Reddit
Basically, WebBrowser is throwing an error with no matching activity in SDK 30+, and then just failing to launch after that.
Read more >No matching activity error in React Native/Expo on Android
I have a React Native/Expo app, and since migrating to Android SDK 30, I have been receiving several "no matching activity errors", ...
Read more >Authentication - Expo Documentation
Authentication. Expo can be used to login to many popular providers on iOS, Android, and web! Most of these guides utilize the pure...
Read more >Create a React Native App with Login in 10 Minutes
You will need to run an AVD (Android Virtual Device) before starting your app, or you can plug in your Android phone and...
Read more >react-native-inappbrowser-reborn - npm
Android · Add import com.proyecto26.inappbrowser.RNInAppBrowserPackage; to the imports at the top of the file · Add new RNInAppBrowserPackage() to ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Ethella
package.json
:So the steps I did were to: 1- Remove unimodules and magic 2- Add expo@44.0.4 2.1- I did some manual installation on
MainApplication.java
as automatic linking is not supported withreact-native-navigation
3- Build successful 4- Add:-@unimodules/core@7.1.2 -@unimodules/react-native-adapter@6.3.9 5- Build fails asking for
unimodules-app-loader
6- Add: @unimodules-app-loader@3.0.0 7- Build fails with error:So apparently there’s some conflicts with unimodules and expo. Maybe you guys will have to upgrade to expo as well instead of
react-native-unimodules
?After following steps in https://stackoverflow.com/questions/69810291/react-native-gradle-manifest-merge-error, I pass over this issue but now getting other issues with permissions apparently:
It doesn’t look like there’s a solution right now. And other alternative packages are out-of-date. I’ll chat with the team to see if it’s possible to address a temporary solution to get around usage of
expo-web-browser