Skip to content

Commit 7711753

Browse files
committed
🌹 Add android:exported value to documentation
Fixes #109
1 parent b900c0a commit 7711753

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ In order to capture the callback url, the following `activity` needs to be added
8080
<manifest>
8181
<application>
8282

83-
<activity android:name="com.linusu.flutter_web_auth.CallbackActivity" >
83+
<activity android:name="com.linusu.flutter_web_auth.CallbackActivity" android:exported="true">
8484
<intent-filter android:label="flutter_web_auth">
8585
<action android:name="android.intent.action.VIEW" />
8686
<category android:name="android.intent.category.DEFAULT" />
@@ -148,7 +148,7 @@ When you use this package for the first time, there are some problems you may ha
148148
<application>
149149
150150
<!-- add the com.linusu.flutter_web_auth.CallbackActivity activity -->
151-
<activity android:name="com.linusu.flutter_web_auth.CallbackActivity" >
151+
<activity android:name="com.linusu.flutter_web_auth.CallbackActivity" android:exported="true">
152152
<intent-filter android:label="flutter_web_auth">
153153
<action android:name="android.intent.action.VIEW" />
154154
<category android:name="android.intent.category.DEFAULT" />
@@ -167,7 +167,7 @@ When you use this package for the first time, there are some problems you may ha
167167
<manifest>
168168
<application>
169169
170-
<activity android:name="com.linusu.flutter_web_auth.CallbackActivity" >
170+
<activity android:name="com.linusu.flutter_web_auth.CallbackActivity" android:exported="true">
171171
<intent-filter android:label="flutter_web_auth">
172172
<action android:name="android.intent.action.VIEW" />
173173
<category android:name="android.intent.category.DEFAULT" />
@@ -180,6 +180,13 @@ When you use this package for the first time, there are some problems you may ha
180180
</manifest>
181181
```
182182
183+
- If you are targeting S+ (version 31 and above) you need to provide an explicit value for `android:exported`. If you followed earlier installation instructions this was not included. Make sure that you add `android:exported="true"` to the `com.linusu.flutter_web_auth.CallbackActivity` activity in your `AndroidManifest.xml` file.
184+
185+
```diff
186+
- <activity android:name="com.linusu.flutter_web_auth.CallbackActivity">
187+
+ <activity android:name="com.linusu.flutter_web_auth.CallbackActivity" android:exported="true">
188+
```
189+
183190
### Troubleshooting OAuth redirects
184191
185192
- Your OAuth Provider must redirect to the valid `callbackUrlScheme` + `://`. This mean if your `callbackUrlScheme` is `validscheme`, your OAuth Provider must redirect to `validscheme://`

0 commit comments

Comments
 (0)