function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kshitij saini 4kshitij saini 4 

Configuring Mobile SDK to work cummunity login using OAuth 2.0

Hi,

Im working on developing a app using mobile SDK im using React Native to develop my application. The URL i have is a community url. So according to docs (link to doc (https://developer.salesforce.com/docs/atlas.en-us.noversion.mobile_sdk.meta/mobile_sdk/communities_login_endpoint.htm)) i created servers.xml.servers.xml

Now configuring the tokens in redirect url in bootconfig.xml bootconfig.xml

After adding all the settings a login page appears but after entering the correct credentials, the errors i encounter are as follows

1. Im taken to a page where it shows "URL doesnot exist"

2. It is not taking the user back to the application to ask for OAuth Permissions. 

 

Can you please tell me how to configure the Mobile SDK and connected app to make it work. Thanks in advance

ShirishaShirisha (Salesforce Developers) 
Hi Kshitij,

Greetings!

Have you followed all the steps given in the below salesforce document to access Mobile SDK using Connected App.

https://help.salesforce.com/articleView?id=connected_app_create_mobile.htm&type=5

If you are still getting the same error,I would suggest you to reach out to the accelerator team to get the implementation idea according to your scenario,if you have premier support.

https://help.salesforce.com/articleView?id=000337601&type=1&mode=1

Kindly let me know if it helps you and close your query by marking it as best answer so that it can help others in the future.

Warm Regards,
Shirisha Pathuri
Wilson GithiiyiWilson Githiiyi
Hello Kshitij were you able to resolve this issue?