Skip to content

Commit d2886d1

Browse files
authored
Update README.md
1 parent 6b1281c commit d2886d1

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,37 @@ import InAppBrowser from 'nativescript-inappbrowser'
142142
...
143143
```
144144

145+
### Authentication Flow using Deep Linking
146+
147+
Define your app scheme and replace `my-scheme` and `my-host` with your info.
148+
149+
- Enable deep linking (Android) - **[AndroidManifest.xml](https://github.com/proyecto26/nativescript-inappbrowser/blob/master/demo/app/App_Resources/Android/src/main/AndroidManifest.xml#L45)**
150+
```
151+
<intent-filter>
152+
<action android:name="android.intent.action.VIEW" />
153+
<category android:name="android.intent.category.DEFAULT" />
154+
<category android:name="android.intent.category.BROWSABLE" />
155+
<data android:scheme="my-scheme" android:host="my-host" android:pathPrefix="" />
156+
</intent-filter>
157+
```
158+
159+
- Enable deep linking (iOS) - **[Info.plist](https://github.com/proyecto26/nativescript-inappbrowser/blob/master/demo/app/App_Resources/iOS/Info.plist#L28)**
160+
```
161+
<key>CFBundleURLTypes</key>
162+
<array>
163+
<dict>
164+
<key>CFBundleTypeRole</key>
165+
<string>Editor</string>
166+
<key>CFBundleURLName</key>
167+
<string>my-scheme</string>
168+
<key>CFBundleURLSchemes</key>
169+
<array>
170+
<string>my-scheme</string>
171+
</array>
172+
</dict>
173+
</array>
174+
```
175+
145176
### Authentication
146177

147178
Using in-app browser tabs (like SFAuthenticationSession/ASWebAuthenticationSession and Android Custom Tabs) where available. Embedded user-agents, known as web-views (like UIWebView and WKWebView), are explicitly not supported due to the usability and security reasons documented in [Section 8.12 of RFC 8252](https://tools.ietf.org/html/rfc8252#section-8.12).

0 commit comments

Comments
 (0)