gbwisx / msal_mobile

Flutter plugin for single client authentication using the Microsoft Authentication Library (MSAL)
MIT License
10 stars 26 forks source link

java.lang.IllegalStateException: Intent filter for: BrowserTabActivity is missing. Please make sure you have the following activity in your AndroidManifest.xml #4

Open bobosette opened 4 years ago

bobosette commented 4 years ago

Hi everybody. I'm trying to use msal_mobile, but when i launch the app in debug mode i've got this issue:

FATAL EXCEPTION: main E/AndroidRuntime(17653): Process: com.example.microsoft_handle, PID: 17653 E/AndroidRuntime(17653): java.lang.IllegalStateException: Intent filter for: BrowserTabActivity is missing. Please make sure you have the following activity in your AndroidManifest.xml E/AndroidRuntime(17653): E/AndroidRuntime(17653): <activity android:name="com.microsoft.identity.client.BrowserTabActivity"> E/AndroidRuntime(17653): <intent-filter> E/AndroidRuntime(17653): <action android:name="android.intent.action.VIEW" /> E/AndroidRuntime(17653): <category android:name="android.intent.category.DEFAULT" /> E/AndroidRuntime(17653): <category android:name="android.intent.category.BROWSABLE" /> E/AndroidRuntime(17653): <data E/AndroidRuntime(17653): android:host="com.example.XXXXXXXXXXXXXX" E/AndroidRuntime(17653): android:path="/5XXXXXXXXXXXXXXXXXXX" E/AndroidRuntime(17653): android:scheme="msauth" /> E/AndroidRuntime(17653): </intent-filter> E/AndroidRuntime(17653): </activity>

my android manifest:

`<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.microsoft_handle">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
    android:name="io.flutter.app.FlutterApplication"
    android:label="microsoft_handle"
    android:icon="@mipmap/ic_launcher">
    <activity
        android:name=".MainActivity"
        android:launchMode="singleTop"
        android:theme="@style/LaunchTheme"
        android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
        android:hardwareAccelerated="true"
        android:windowSoftInputMode="adjustResize">
        <intent-filter>
            <action android:name="android.intent.action.MAIN"/>
            <category android:name="android.intent.category.LAUNCHER"/>
        </intent-filter>
    </activity>
    <activity android:name="com.microsoft.identity.client.BrowserTabActivity">
        <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:host="com.example.XXXXXXXXX"
                android:path="/5XXXXXXXXXXXXXXXXXXX"
                android:scheme="msauth" />
        </intent-filter>
    </activity>
    <!-- Don't delete the meta-data below.
         This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
    <meta-data
        android:name="flutterEmbedding"
        android:value="2" />
</application>

`

I don't know where's the problem. Anybody can help me?? Thank you

jlieow commented 4 years ago

You seem to be doing exactly as instructed. Have you tried invalidating the cache under the "File" tab?

bobosette commented 4 years ago

Thank u but I solved by switching library

Il Lun 10 Ago 2020, 12:43 jlieow notifications@github.com ha scritto:

You seem to be doing exactly as instructed. Have you tried invalidating the cache under the "File" tab?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gbwisx/msal_mobile/issues/4#issuecomment-671283793, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADEWB4IB4JEUU2L6FY24M3LR77FOPANCNFSM4L4J2YWA .

remymumoh commented 4 years ago

You switched to which library? you can share your implementation if you dont mind on git

SrikanthMangalapally commented 2 years ago

I'm facing same problem, may i know which library you have switched to ?