cancel
Showing results for 
Search instead for 
Did you mean: 

webView: User-Agent incompability

luis_kose2
Explorer
0 Kudos

Hi gurus,

I'm developing an iPhone application that invoke a web app SAP Business Server Page using the component webView (loadRequest method).

The error message: "<htmlb:content>: (*) This browser is not supported: for Design2003 the Interner Explorer as of 5.50 and the Mozila as of 1.75 are supported"

PS: Everything ok acessing this SAP BSP web app through Safari of iPhone's Simulator.

In short, i try change programmatically the webView's User-Agent to the same used in Safari of iPhone's Simulator ("Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_1_3 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7E18 Safari/528.16"), with properties and methods of webView's header using NSMutableDictionary and NSMutableURLRequest.

Do you have any idea to help me?

Tks a lot!

Accepted Solutions (0)

Answers (4)

Answers (4)

luis_kose2
Explorer
0 Kudos

Gurus,

Using design classic in BSP my problem was solved.

Tks a lot for all.

luis_kose2
Explorer
0 Kudos

Erhan,

I will see the BSP's output.

Greg,

Can you provide more datails about your approach?

Tks for all.

Former Member
0 Kudos

did you try in your Service Data Interactive Options GUI Link setting to Yes and your GUI Configuration Button parameter ~USERAGENTCHECK set to 0?

Former Member
0 Kudos

Hi Luis,

I ont have iPhone but it seems like xHTML compliance problem. So you have to make your BSP page xHTML compliant.

You can refer to [this blog|http://bit.ly/dc5uZS]