Reputation: 9612
I have a nativescript project and attempting to login using Oauth2.0. Now on iOS, everything works fine. In Android, whenever I click on login the webview is blank white, no error nothing on the console either.
I've been trying things out and pretty much stuck on this for over 3 days now :(
In app manifest for the scheme:
<activity
android:name="com.tns.NativeScriptActivity"
android:label="@string/title_activity_kimera"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="@style/LaunchScreenTheme">
<meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!-- Custom Path data -->
<data android:path="/auth"
android:scheme="msala1ea6c64-3d77-4f2b-9baf-1cf72da2d376"/>
</intent-filter>
</activity>
And of course there's the 'android:launchMode="singleTask">`
Oauth2 Config:
`openIdSupport: 'oid-full',
clientId: 'a1ea6c64-3d77-4f2b-9baf-1cf72da2d376',
redirectUri: 'msala1ea6c64-3d77-4f2b-9baf-1cf72da2d376://auth',
urlScheme: 'msala1ea6c64-3d77-4f2b-9baf-1cf72da2d376',
scopes: ['openid', 'https://outlook.office.com/mail.read']`
and msala1ea6c64-3d77-4f2b-9baf-1cf72da2d376://auth
is registered in Azure as a redirectURI
Upvotes: 3
Views: 479