Detect if webview

Hi everybody,

I use this service to detect if the app runs on a phone or a browser :smile:

.factory('isPhoneGap', function () {
    'use strict';

    return !!window.cordova;
})

but here I get the following very weird behaviour:

& isPhoneGap
false
& !!window.cordova
true
& ionic.Platform.isWebView();
true

any idea what is happening ?

Thanks