Hi,
I recently tried to build a hybrid application using PhoneGap and SAPUI5. I have done this for iOS and Android several times, so I am not new to this.
Now comes Windows 8 which works quiet different compared to iOS and Android. If you develop for Windows 8 RT, you can do so by using JavaScript as a native language of the platform. All device API's can directly be accessed through JavaScript calls.
It first sounds good, but it also contains a major drawback. Windows 8 restricts your scripts from actions that are common techniques to web developers such as "document.write()". This is done for security reasons because your JavaScript code is abel to access all device capabilities.
The problem with SAPUI5 is now that the sap-ui-core.js library is not allowed to load any other scripts and by testing you receive:
0x800c001c - JavaScript runtime error: Unable to add dynamic content. A script attempted to inject dynamic content, or elements previously modified dynamically, that might be unsafe. For example, using the innerHTML property to add script or malformed HTML will generate this exception. Use the toStaticHTML method to filter dynamic content, or explicitly create elements and attributes with a method such as createElement. For more information, see http://go.microsoft.com/fwlink/?LinkID=247104.
From my current understanding it would be necessary that a second library is needed to meet the new requirements of Windows 8 to allow us to develop Windows 8 Store Applications.
Has anyone an idea about this isue? Have I done something wrong or misunderstood?
Thanks for sharing your thoughts and ideas,
Christoph