@kobo2000 yeah i wondering about the same thing too. Well, i think i will redesign or make a new version of my apps for android kitkat . Btw, give me a shot if you got some new info about that “small size apk but work almost in all platform”. :D
dvlwjoffice
@dvlwjoffice
Posts made by dvlwjoffice
-
RE: Onsen UI make screen appear as a blank white screen in Android 4.4.2
-
RE: Onsen UI make screen appear as a blank white screen in Android 4.4.2
@kobo2000 said:
@dvlwjoffice Yes, this is how it worked for me .
Polyfill.io reads the User-Agent header of each request and returns polyfills that are suitable for the requesting browser. Tailor the response based on the features you’re using in your app.
I managed to extract a copy of the src using emulator for android 4.4.2 webview using onsenui lib and Then included it as usual and tested it on real device and it worked offline . No more white screen online or offline. However , I couldn’t find a mobile with older android version around to test it further. here is a copy of the polyfill src for android 4.4.2 webview https://upload.run/ligjjg
Try it and let me know if there is any issues as I’m still testing this method . The current issue I found till now is content gets blurry sometimes .Well, tried it, the white blank screen is disappear, but the program wasn’t run and some function inside my js isn’t run too.
-
RE: Onsen UI make screen appear as a blank white screen in Android 4.4.2
@kobo2000
Thanks for reply, but wait a minutes, so i just need to download their assets, include it in my file (with<script src blablabla>
) and its work automatically ?edit : seems i can’t found the way to grab a copy of the polyfill’s service and include it in my file. Can you teach me how to ? Thanks
-
RE: Onsen UI make screen appear as a blank white screen in Android 4.4.2
@Fran-Diox TIL that was called polyfill. So, whats polyfills that onsen ui have that i can add manually ? Sorry, if i am get it correctly i need to try to add a polyfill that missing so my application can run in Android 4.4.2 and below right ? But i already find it in onsen ui documentation and i doesn’t found anything.
Well, me already trying minifying/compressing the code and assets (except for webfont) and the size was around 4mb (source code before compiled it as an APK), its became 10mbs as APK.
-
RE: Onsen UI make screen appear as a blank white screen in Android 4.4.2
@Fran-Diox said:
@dvlwjoffice We support and test only +4.4.4 as explained in the docs. For 4 - 4.4.3 you can either add the necessary polyfills (check “older browsers” in the previous link) or debug to see what’s the issue. About Crosswalk, it is a “finished” product and works well even though it won’t get more updates. The only drawback is the bundle size but you can have 2 apps, a light one for Android +5 and another one with Crosswalk for older versions.
sorry, what do you mean by :
add necessary polyfills
? i can’t get it… even though i already read this https://onsen.io/v2/guide/faq.html#old-browsers , can you explain it a little bit for me? and little example what is polyfills and how to add them ?
Btw, i already debug it via visual studio, but when the apk start nothing appear in the console log, so i doesn’t know what is wrong there. Annyway, for crosswalk i already try it, but when compile it to APK its always failed and have tons of errors. Its why i am thinking that the crosswalk is bugged since its not supported by intel anymore.
Btw, Maybe this is OOT, but do u have idea why my simple APK with onsen ui can became 10 mbs ?
-
Onsen UI make screen appear as a blank white screen in Android 4.4.2
Hello, recently i got call from my work partner for the app that i make with onsen ui in cordova appear as a blank white screen. I already trying the app before, and never found bug like that. After trying to many gadget and platform, i just found that somehow Onsen UI make the screen appear as a blank white screen just in Android 4.4.2 and below.
Do anyone know how to fix this ?
And what makes Onsen UI appear as a blank white screen in Android 4.4.2 ?Don’t force us to use Crosswalk, since it make the APK size became large and heavy, and its already not supported by Intel (CMIIW AFAIK) :(
-
RE: Animated Splashscreen ?
@Gaurav Well, i am asked in Cordova’s slack channel, seem we doesn’t have any solution except make it a white / black screen and start the animation page.
I think its the dead end for us. What a sad life.
-
RE: Animated Splashscreen ?
sorry late reply again @Gaurav , yeah i try that code in config.xml before :p
and yes its not a perfect solution. and i googling everywhere, nothing share/ask about that splashscreen. Maybe we need to ask cordova developer for this ?
-
RE: Animated Splashscreen ?
@Gaurav sry late reply again.
I want to inform that i try your code. And the result is same, i trying to modify it so the first blank screen doesn’t appear but i think its doesnt work.and i just have an idea right now. To make the first splashscreen from cordova as a usual wallpaper that appear when you open the application, and then the one from your code as the real splashscreen that load data, etc.