Reputation: 2173
I have always used ripple
to run my cordova app in desktop browsers.
But I know that there is a better tool to emulate mobile apps and it's integrated in chrome: Chrome Device Mode Mobile Emulation
.
Is there a way to use Chrome Device Mode Mobile Emulation
instead of using ripple
to emulate my app in chrome?
Thanks
Upvotes: 3
Views: 1721
Reputation: 560
I'm able to use Chrome Device Emulation with my Cordova app, however in the 'emulation' tab, under 'device' I had to uncheck 'emulate mobile' for the app to render like it would on a mobile device.
Upvotes: 0
Reputation: 1078
Chrome remote debugging is easy and useful to monitor or debug network related bug in mobile application. Just follow the following steps.
Before that you have to add these lines in your application's src file (.java)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
if (0 != (getApplicationInfo().flags &= ApplicationInfo.FLAG_DEBUGGABLE))
{ WebView.setWebContentsDebuggingEnabled(true); }
}
(This will allow chrome to monitor running webview)
That is it!! You can debug your application from chrome.
Note:- Its only for android
Upvotes: 0