You need to sign in to do that
Don't have an account?
Anjith Kumar
Change the redirect URL in Salesforce mobile app?
Hi,
I am developing a Hybrid Andriod mobile app for community users.I change the server url in server.xml of mobile sdk. It is logging into salesforce using community login page but it is redirecting to the salesforce instead of community. I came to know this by alert message in my vf page. It is showing https://c.ap1.visual.force.com/apex/pageName. Idealy it should show or redirect to the community URL .i.e., https://extentorautomobiles.force.com/customerscommunity/pageName
Please help me to achieve this .
Thanks,
I am developing a Hybrid Andriod mobile app for community users.I change the server url in server.xml of mobile sdk. It is logging into salesforce using community login page but it is redirecting to the salesforce instead of community. I came to know this by alert message in my vf page. It is showing https://c.ap1.visual.force.com/apex/pageName. Idealy it should show or redirect to the community URL .i.e., https://extentorautomobiles.force.com/customerscommunity/pageName
Please help me to achieve this .
Thanks,
In the screen that shows the login webview, if you press the 'Menu' button
you'll see a 'Change Server' button, which will let you add a custom server
URL.
for Android use myapp:///mobilesdk/detect/oauth/done. You should change myapp to be specific to your application.
You can also enter a description for your app, the URL of a logo image and other optional information.
http://wiki.developerforce.com/page/Developing_Hybrid_Apps_with_the_Salesforce_Mobile_SDK
I think that this can't be done using javascript, if you're doin' this with mac, you have to change your app settings at (Settings | Your App | Custom Host) and replace login by test.
you have to edit the DEFAULT_LOGIN_URL attribute of the classe com.salesforce.androidsdk.auth.OAuth2.java to the login URL (https://test.salesforce.com).
http://stackoverflow.com/questions/11413858/salesforce-sandbox-access-from-android-hybrid-app
Regards,
Ashish
I am new bee to this.
I am developing a hybrid android app using Mobile SDK CLI - forcedroid. I am unable to test the application on sandbox in android app.
Also as per Ashish_SFDC, comment we have to edit DEFAULT_LOGIN_URL attribute, but i am unable to find that attribute in
com.salesforce.androidsdk.auth.OAuth2.java class
Need help to achive this.
Thanks