Skip to content

Commit 22594f6

Browse files
authored
[Example app] Update intent filters and redirect URIs. (schibsted#60)
To ensure the correct activity is automatically opened upon return from CustomTabs login.
1 parent 5cf0ac0 commit 22594f6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/src/main/AndroidManifest.xml

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
<category android:name="android.intent.category.DEFAULT" />
3333
<category android:name="android.intent.category.BROWSABLE" />
3434
<data android:scheme="com.sdk-example.pre.602525f2b41fa31789a95aa8"
35+
android:host="*"
3536
android:path="/login"/>
3637
</intent-filter>
3738
</activity>
@@ -45,6 +46,7 @@
4546
<category android:name="android.intent.category.DEFAULT" />
4647
<category android:name="android.intent.category.BROWSABLE" />
4748
<data android:scheme="com.sdk-example.pre.602525f2b41fa31789a95aa8"
49+
android:host="*"
4850
android:path="/manual-login"/>
4951
</intent-filter>
5052
</activity>

app/src/main/java/com/schibsted/account/example/ClientConfig.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ object ClientConfig {
66
@JvmStatic
77
val environment = Environment.PRE
88
const val clientId = "602525f2b41fa31789a95aa8"
9-
const val loginRedirectUri = "com.sdk-example.pre.602525f2b41fa31789a95aa8:/login"
10-
const val manualLoginRedirectUri = "com.sdk-example.pre.602525f2b41fa31789a95aa8:/manual-login"
9+
const val loginRedirectUri = "com.sdk-example.pre.602525f2b41fa31789a95aa8:///login"
10+
const val manualLoginRedirectUri = "com.sdk-example.pre.602525f2b41fa31789a95aa8:///manual-login"
1111
const val webClientId = "599fd705ed21dc0d55011d2a"
1212
const val webClientRedirectUri = "https://pre.sdk-example.com/safepage"
1313
}

0 commit comments

Comments
 (0)