You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't changed any callbacks or hosts - logging in to sandbok test.salesforce.com with our test user
Login succeeds, but I'm returned on main page without getting login callback, the page still have a button "Login"
I've cheked intent filters, documentation, have put some logs in the LoginActivity in the SDK to see if it's called, and I see that method "finish" is called, but new intent is not.
If I press "Login" button on main page again - then I'm authenticated without opening web view and I receive the data. Button on main page changes to "Logout" as expected.
In case I disable deferred login, everything works on first attempt - I'm logged in on return from web view and I dont need to press login again.
The issue is that without callback on first login attempt it's not clear if user is logged in or no. LoginActivity just closes.
The text was updated successfully, but these errors were encountered:
Ruslan-Mz
changed the title
Deferred login on android doesnt catch intent-filter callback
Deferred login on android doesn't catch intent-filter callback
May 6, 2022
Hello!
Can you please check if this is a bug on RN side, or maybe on Android SDK side? Or maybe there's just something missing in the configuration?
I've created an app from this template https://github.com/forcedotcom/SalesforceMobileSDK-Templates/tree/dev/ReactNativeDeferredTemplate
Uncommented login activity and intent-filter for it:
AndroidManifest.xml:
I haven't changed any callbacks or hosts - logging in to sandbok test.salesforce.com with our test user
Login succeeds, but I'm returned on main page without getting login callback, the page still have a button "Login"
app.js:
I've cheked intent filters, documentation, have put some logs in the LoginActivity in the SDK to see if it's called, and I see that method "finish" is called, but new intent is not.
If I press "Login" button on main page again - then I'm authenticated without opening web view and I receive the data. Button on main page changes to "Logout" as expected.
In case I disable deferred login, everything works on first attempt - I'm logged in on return from web view and I dont need to press login again.
The issue is that without callback on first login attempt it's not clear if user is logged in or no. LoginActivity just closes.
The text was updated successfully, but these errors were encountered: