# Hello i have Open With pop up in my application and contains the app 2 times

**URL:** <https://community.auth0.com/t/hello-i-have-open-with-pop-up-in-my-application-and-contains-the-app-2-times/96009>\
**Category:** Get Help\
**Tags:** login-prompt-new-experience, login-experience\
**Created:** [December 8, 2022, 11:24am UTC](https://community.auth0.com/t/hello-i-have-open-with-pop-up-in-my-application-and-contains-the-app-2-times/96009 "2022-12-08T11:24:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndonMitev](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/andonmitev/32/41659_2.png) [@AndonMitev](https://community.auth0.com/u/AndonMitev)\
**Post date:** [December 8, 2022, 11:24am UTC](https://community.auth0.com/t/hello-i-have-open-with-pop-up-in-my-application-and-contains-the-app-2-times/96009/1 "2022-12-08T11:24:50Z")

</div>

So when user enter in the application and he decide to login with Google for example, after successful login he can see `Open With` modal where application is suggested 2 times, my question is how to prevent this `Open with` modal to shows up. Many thanks!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [December 9, 2022, 1:23am UTC](https://community.auth0.com/t/hello-i-have-open-with-pop-up-in-my-application-and-contains-the-app-2-times/96009/2 "2022-12-09T01:23:55Z")

</div>

Hey @AndonMitev!

Do you mind sharing a screenshot of exactly what you’re seeing? I think I know what you are referring to, does this only happen on the initial login?

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [December 9, 2022, 9:35pm UTC](https://community.auth0.com/t/hello-i-have-open-with-pop-up-in-my-application-and-contains-the-app-2-times/96009/5 "2022-12-09T21:35:07Z")

</div>

Gotcha, thanks for confirming!

Can you please check out this issue and give the recommend fix a try?

> <https://github.com/auth0/react-native-auth0/issues/536#issuecomment-1282134579>
>
> Hi, 
> I use react-native-auth0 version 2.13.3. When I log in with a google accou…nt, after I choose an account, have a popup showing 'open with ... ' with 2 applications but only the app can log in, remaining to fail.
> 
> !\[photo\_2022-10-17\_16-55-17\](https://user-images.githubusercontent.com/41155784/196148237-3dc7afd8-8300-4ac3-8a82-766d979c4ba4.jpg)

---

<div class="post-metadata">

**Author:** ![AndonMitev](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/andonmitev/32/41659_2.png) [@AndonMitev](https://community.auth0.com/u/AndonMitev)\
**Post date:** [December 10, 2022, 8:44am UTC](https://community.auth0.com/t/hello-i-have-open-with-pop-up-in-my-application-and-contains-the-app-2-times/96009/6 "2022-12-10T08:44:30Z")

</div>

Hmmm i’m trying but probably not doing it right not sure. In my callback urls i do have this:

`dev.environment.my.app://auth.opn.network/android/dev.environment.my.app/callback`

and i have builded intent url like this using react native expo:

```auto
android: {
  intentFilters: [
  {
              action: 'VIEW',
              autoVerify: true,
              data: [
                {
                  scheme: 'dev.environment.my.app',
                  pathPrefix: '/android/dev.environment.my.app/callback',
                },
              ],
              category: ['BROWSABLE', 'DEFAULT'],
            }
]
}

```

but still i see this pop up `Open with` and it has application 2 times

---

<div class="post-metadata">

**Author:** ![AndonMitev](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/andonmitev/32/41659_2.png) [@AndonMitev](https://community.auth0.com/u/AndonMitev)\
**Post date:** [December 13, 2022, 4:24am UTC](https://community.auth0.com/t/hello-i-have-open-with-pop-up-in-my-application-and-contains-the-app-2-times/96009/7 "2022-12-13T04:24:14Z")

</div>

Hey @ty.frith , I still cannot manage to resolve it, i have shared detailed info here: [Expo unexpected prompt with duplicate apps · Issue #554 · auth0/react-native-auth0 · GitHub](https://github.com/auth0/react-native-auth0/issues/554#issuecomment-1346664166) basically i have tried everything but cannot force it to be once

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [December 15, 2022, 12:58am UTC](https://community.auth0.com/t/hello-i-have-open-with-pop-up-in-my-application-and-contains-the-app-2-times/96009/8 "2022-12-15T00:58:08Z")

</div>

Hey @AndonMitev thanks a bunch for filing the issue against the SDK - I’ll be curious to see what the SDK owner says, as well as the other user involved.

FWIW - I was seeing the duplicate `open with` prompt in `2.14.0` with no changes to the [sample app](https://github.com/auth0-samples/auth0-react-native-sample/tree/master/00-Login-Expo). I do not experience that behavior in the app if I update to `react-native-auth0` version `2.15.0`. Similarly, if I update my `scheme` to something other than the package name, in the case of the sample `com.auth0samples` → `demo` and add a new allowed callback url in my app settings `demo://{MY_DOMAIN}/android/com.auth0samples/callback` I do not experience the duplicate popup issue.

My update `AndroidManifest.xml` looks like:

```auto
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.auth0samples">
  <uses-permission android:name="android.permission.INTERNET"/>
  <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
  <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
  <uses-permission android:name="android.permission.VIBRATE"/>
  <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
  <queries>
    <intent>
      <action android:name="android.intent.action.VIEW"/>
      <category android:name="android.intent.category.BROWSABLE"/>
      <data android:scheme="https"/>
    </intent>
  </queries>
  <application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="true" android:theme="@style/AppTheme" android:usesCleartextTraffic="true">
    <meta-data android:name="expo.modules.updates.ENABLED" android:value="true"/>
    <meta-data android:name="expo.modules.updates.EXPO_SDK_VERSION" android:value="46.0.0"/>
    <meta-data android:name="expo.modules.updates.EXPO_UPDATES_CHECK_ON_LAUNCH" android:value="ALWAYS"/>
    <meta-data android:name="expo.modules.updates.EXPO_UPDATES_LAUNCH_WAIT_MS" android:value="0"/>
    <meta-data android:name="expo.modules.updates.EXPO_UPDATE_URL" android:value="https://exp.host/@anonymous/00-Login-Expo"/>
    <activity android:name=".MainActivity" android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" android:launchMode="singleTask" android:windowSoftInputMode="adjustResize" android:theme="@style/Theme.App.SplashScreen" android:exported="true" android:screenOrientation="portrait">
      <intent-filter>
        <action android:name="android.intent.action.MAIN"/>
        <category android:name="android.intent.category.LAUNCHER"/>
      </intent-filter>
      <intent-filter>
        <action android:name="android.intent.action.VIEW"/>
        <category android:name="android.intent.category.DEFAULT"/>
        <category android:name="android.intent.category.BROWSABLE"/>
        <data android:scheme="demo"/>
      </intent-filter>
    </activity>
    <activity android:name="com.facebook.react.devsupport.DevSettingsActivity" android:exported="false"/>
  </application>
</manifest>

```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 29, 2022, 12:58am UTC](https://community.auth0.com/t/hello-i-have-open-with-pop-up-in-my-application-and-contains-the-app-2-times/96009/9 "2022-12-29T00:58:40Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
