Guide to Windows - WindSekirun/RxSocialLogin GitHub Wiki
add this dependency in app/build.gradle
implementation('com.microsoft.identity.client:msal:0.1.3') {
// if your app includes android support
// libraries or GSON in its dependencies
// uncomment below
exclude group: 'com.android.support', module: 'appcompat-v7'
// exclude group: 'com.google.code.gson'
}
add this statement in AndroidManifest.xml
<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:scheme="@string/windows_api_scheme"
android:host="auth" />
</intent-filter>
</activity>
windows_api_scheme has special rule for strings. if your app-id is 51024a12-33b1-4129-95c8-b84a31d0e5b4
, your scheme is msal51024a12-33b1-4129-95c8-b84a31d0e5b4
windows(getString(R.string.windows_api_key))