• Sowmya M N
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 4
    Replies
Could anyone suggest ways for improving the Hybrid remote app performance.

Trying to load cordova.js from localhost is not working.
 
Hi All,

We have built the Hybrid Remote App.  When the application is idle and session timeout user is unable to login. On providing the correct crededntials also its redirecting back to login page and no error message is displayed. After reinstalling the app only user is able to login. We have not created any custom login. Salesforce Mobile SDK 6.0 default login is only used.

Following is the bootconfig file content.
{
  "remoteAccessConsumerKey": "XXXXXXXXXXXXXXX",
  "oauthRedirectURI": "https://login.salesforce.com/services/oauth2/success",
  "oauthScopes": [
    "web",
    "api"
  ],
  "isLocal": true,
  "startPage": "/apex/XXXXxxxxxxXXXXX",
  "errorPage": "error.html",
  "shouldAuthenticate": true,
  "attemptOfflineLoad": false
}

Steps followed to create the hybrid remote app
1. forcehybrid create command
2. Using statis resource for for library files, images, styles
3. Visualforce file for frontend content
4. Updated consumerkey and 'start page' in bootconfig

Request you to let me know if any other configuration changes needs to be done.

Thank You.

- Sowmya
Could anyone suggest ways for improving the Hybrid remote app performance.

Trying to load cordova.js from localhost is not working.
 
Hi All,

We have built the Hybrid Remote App.  When the application is idle and session timeout user is unable to login. On providing the correct crededntials also its redirecting back to login page and no error message is displayed. After reinstalling the app only user is able to login. We have not created any custom login. Salesforce Mobile SDK 6.0 default login is only used.

Following is the bootconfig file content.
{
  "remoteAccessConsumerKey": "XXXXXXXXXXXXXXX",
  "oauthRedirectURI": "https://login.salesforce.com/services/oauth2/success",
  "oauthScopes": [
    "web",
    "api"
  ],
  "isLocal": true,
  "startPage": "/apex/XXXXxxxxxxXXXXX",
  "errorPage": "error.html",
  "shouldAuthenticate": true,
  "attemptOfflineLoad": false
}

Steps followed to create the hybrid remote app
1. forcehybrid create command
2. Using statis resource for for library files, images, styles
3. Visualforce file for frontend content
4. Updated consumerkey and 'start page' in bootconfig

Request you to let me know if any other configuration changes needs to be done.

Thank You.

- Sowmya

I have developed HTML5 app which is working just fine in browser.

 

Now I'm looking for Hybrid Remote app (android & iOS). I created connected app to SF, URL is pointing to my HTML5 app. Hybrid remote client starts fine, shows login and then goes fine to my app. Working perfectly to this stage.

 

But then, my app have logout button which redirects to /secur/logout.jsp, with browser this works as expected. With hybrid app, it logouts and shows the login screen again but if I now try login again, it opens to SF home page and not my HTML5 what I expected. Also, if I restart hybrid app, it goes straight to HTML5 app so looks like the hybrid app did not logout.

 

How I should implement the logout so it will logout the hybrid client. Can I somehow listen URL where hybrid app webview is going ?

 

  • September 18, 2013
  • Like
  • 0