Abdul
Abdul

Reputation: 331

Cordova Ionic apk with chrome/chromium webview

I'm developing an Arabic android hybrid application using IONIC and Cordova, but seems some issues ( not applying font, scrolling not smooth etc...) to android 4.0-to 4.4. To solve this issue I tried with cocoonjs+webview , Now issues solved but the apk size for coccoon and webview+ is 18MB.

Suggest me a solution with less apk size?, Have any option in Cocoon JS to reduces the apk size? any other solution to at-least work applying font change with less size of apk? Any option to install a less size apk and and run-time if user wishes to download and add chrome-view to the installed apk?

Upvotes: 0

Views: 1054

Answers (1)

Keval
Keval

Reputation: 3389

Even I had this issue of having a very slow scrolling. Adding overflow-scroll="true" to your ion-content removes some scroll effects, which is worthy cause the scroll lag is gone; so I added it and my scroll is now flawless.

So, your HTML will look something like:

<ion-content overflow-scroll="true" class="has-header">

And why are you unable to use fonts? Have you imported the correct files in the right manner? This is how I import font using CSS and all works good:

@font-face {
  font-family: "Roboto-Regular";
  src: url("../fonts/Roboto-Regular.ttf");
}

And I use it in this way:

.titlemenu {
  font-family: "Roboto-Regular" !important;
}

Upvotes: 0

Related Questions