Sencha touch 2.2 alpha iOS home screen detected as a webview

Sencha touch 2.2 alpha iOS home screen detected as a webview

REQUIRED INFORMATIONExt version tested:

Sencha touch

Browser versions tested against:

iOS6 Safari (iPad mini)

Description:
When I require 'Ext.device.Connection' and 'Ext.device.Device' to use the function Ext.device.Connection.isOnline(), it works fine in iOS safari (and on Android), but if I add the app to the home screen I get an error "e is undefined in e.online" in file Ext.device.connection.Sencha in the function onConnectionChange.
The problem is that the home screen app is detected as a webview, and since it's not a phonegap app it's detected as a sencha webview.
But it is not a webview, you can't use the sencha device files... The app will get stuck on launcher...

I've just added the url to home screen with the "add to home screen" button in safari, but it's still the same website...
Even if you consider that this is a webview, I don't think that the javascript error is justified since it makes my app crash and unable to launch...
I shouldn't call the Sencha wrapper functions if you are not in a sencha webview.

I'm getting the same issue on the iPhone 5. I found that even though a bookmarked app on IOS6 uses a webview control it doesn't have the same system access privileges as a webview control embedded in an app and deployed to the app store.

It appears that in the Sencha Touch 2.2 code all the Ext.device.* classes return an Ext.device.*.Sencha type because a webview control is detected. This causes a bookmarked app on an IOS6 device to crash.

A simple check to see if the app is in a webview and a sencha app can resolve this issue. In all the constructors of the Ext.devive.* classes I've changed the code to check for a sencha app. If the app is in a webview control but not a sencha app then return Ext.device.*.Simulator (just like what would happen when accessing the app via a browser) Eg: