• ckhan
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies

The currently served SF login page for touch devices (login.salesforce.com?display=touch) is triggering a really bad UI bug on ios7 webkit view.

Note that this only happens for app that uses their on UIWebView, not iOS7 Safari.

 

You can reproduce the problem easily. Create a new iOS app that just has a single view, and add a webview to it.

The viewDidLoad method can be as simple as:

 

- (void)viewDidLoad

{

    [superviewDidLoad];

    NSString *address = @"https://login.salesforce.com?display=touch";

    NSURL *url = [NSURL URLWithString:address];

    NSURLRequest *request = [NSURLRequest requestWithURL:url];

    [self.webViewloadRequest:request];

}

 

When you start the app, the login page looks fine. But if you tap on the "User name" field, the UIWebView will fail to set focus.

Tap again, it might shift the page up a few pixels. Tap again, it'll set focus to the password field. Tap again, and you might get foucs finally on the username field. 

 

This appears to be a bug in ios7. If you have an ios developer forum account, you can read the discussion here:

https://devforums.apple.com/message/887376#887376

There are simple test cases on that thread that illustrate the bug. 

There is also a simple workaround for the problem mentioned in that thread:

 

If the HTML returned from login.salesforce.com change the embedded meta tag from this:

 

<meta name="viewport" content="initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />

 

to this

 

<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, target-densityDpi=device-dpi" />

 

it will load fine. Verified by serving that page to a UIWebView.

 

Given that the SF meta tag has a typo in it anyway (semicolons instead of commas), it'd be GREAT if Salesforce could be the "bigger person" here and fix their HTML by adding the few characters here to be compatible with the new ios7 webkit (rather than having to wait for an ios OS upgrade that fixes the issue).

 

Because logging into SF is often the first step for partner app, this bug looks awful to our users; a fix would be really, realy appreciated.

 

Looking forward to a response from folks inside SF who can help.

-ck

 

 

 

 

 

  • October 26, 2013
  • Like
  • 0

The currently served SF login page for touch devices (login.salesforce.com?display=touch) is triggering a really bad UI bug on ios7 webkit view.

Note that this only happens for app that uses their on UIWebView, not iOS7 Safari.

 

You can reproduce the problem easily. Create a new iOS app that just has a single view, and add a webview to it.

The viewDidLoad method can be as simple as:

 

- (void)viewDidLoad

{

    [superviewDidLoad];

    NSString *address = @"https://login.salesforce.com?display=touch";

    NSURL *url = [NSURL URLWithString:address];

    NSURLRequest *request = [NSURLRequest requestWithURL:url];

    [self.webViewloadRequest:request];

}

 

When you start the app, the login page looks fine. But if you tap on the "User name" field, the UIWebView will fail to set focus.

Tap again, it might shift the page up a few pixels. Tap again, it'll set focus to the password field. Tap again, and you might get foucs finally on the username field. 

 

This appears to be a bug in ios7. If you have an ios developer forum account, you can read the discussion here:

https://devforums.apple.com/message/887376#887376

There are simple test cases on that thread that illustrate the bug. 

There is also a simple workaround for the problem mentioned in that thread:

 

If the HTML returned from login.salesforce.com change the embedded meta tag from this:

 

<meta name="viewport" content="initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />

 

to this

 

<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, target-densityDpi=device-dpi" />

 

it will load fine. Verified by serving that page to a UIWebView.

 

Given that the SF meta tag has a typo in it anyway (semicolons instead of commas), it'd be GREAT if Salesforce could be the "bigger person" here and fix their HTML by adding the few characters here to be compatible with the new ios7 webkit (rather than having to wait for an ios OS upgrade that fixes the issue).

 

Because logging into SF is often the first step for partner app, this bug looks awful to our users; a fix would be really, realy appreciated.

 

Looking forward to a response from folks inside SF who can help.

-ck

 

 

 

 

 

  • October 26, 2013
  • Like
  • 0

Hi:

 

I am using https://apigee.com to get  https://na12.salesforce.com/services/data/v23.0/sobjects/Organization/00DU0000000JiqwMAC

 

but I get 

 

HTTP/1.1 404 Not Found

Date: Tue, 29 Nov 2011 22:28:56 GMT

Content-Length: 90

Content-Type: application/json; charset=UTF-8

Connection: close

Server:  [ { "message": "The requested resource does not exist", "errorCode": "NOT_FOUND" } ]

 

Any ideas?

 

Thanks.