Logic Machine Forum
Mosaic "bug" - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: Mosaic "bug" (/showthread.php?tid=2257)



Mosaic "bug" - fiLLLip - 01.10.2019

I'm using the Wallpanel for Android, utilizing Android Web View. https://github.com/thanksmister/wallpanel-android
After updating the Mosaic app 20190911 from the previous one (the one without connection indicator), Wallpanel will not render the application anymore. As there is no way to roll back the version, I must now stop using the Wallpanel application and use Google Chrome instead, which does not cover my needs. Do you test on Android Web View? If not, could you? And is it an option to open-source it?
This lowered the WAF (Wife acceptance factor) in our house drastically...


RE: Mosaic "bug" - Daniel - 01.10.2019

I just tried it and it works for me. What doesn't work and what is so special about this app? Smile


RE: Mosaic "bug" - fiLLLip - 01.10.2019

(01.10.2019, 10:12)Daniel. Wrote: I just tried it and it works for me.  What doesn't work and what is so special about this app? Smile

I just tried it on my phone as well, and there it worked. My tablets are running Android 6.0, and the newest Android WebView. The Mosaic app just doesn't load successfully, the background turns grey and it kind of freezes there. Very strange, and it happened after updating Mosaic.


RE: Mosaic "bug" - Daniel - 01.10.2019

This doesn't make sense to me. Can you change url and navigate to homepage?


RE: Mosaic "bug" - fiLLLip - 08.10.2019

(01.10.2019, 12:26)Daniel. Wrote: This doesn't make sense to me. Can you change url and navigate to homepage?

Yes, the "main page" of Logicmachine works, but as soon as I navigate to Mosaic 3.0, the page turns grey and won't load. Will try to connect with some debugging one day to see what fails.


RE: Mosaic "bug" - Daniel - 08.10.2019

Did you try to clear the cache?


RE: Mosaic "bug" - fiLLLip - 15.10.2019

(08.10.2019, 13:09)Daniel. Wrote: Did you try to clear the cache?

It happens on several tablets (same type with same versions). And I have removed and reinstalled the Wallpanel app. I could try to clear the Android Webview cache to see if that helps.

(15.10.2019, 10:32)fiLLLip Wrote:
(08.10.2019, 13:09)Daniel. Wrote: Did you try to clear the cache?

It happens on several tablets (same type with same versions). And I have removed and reinstalled the Wallpanel app. I could try to clear the Android Webview cache to see if that helps.

Downloaded https://play.google.com/store/apps/details?id=com.snc.test.webview2&hl=en_US now and testet, and got this error:
   

EDIT:

Seems to be related to localstorage not being defined?
Code:
//настройки языка
$(function() {
    function initLanguage() {
        $(document.body).tr();
        var lang = localStorage.getItem('core_language'); // Line 260
        if (lang) lang = parseJSON(lang);
        if (_.isString(lang) && lang.length > 0) {
            window.currLang = lang;
            lang = lang + '.js';
            $.getScript(pathURL + "js/languages/" + lang, function() {
                $(document.body).tr();
            })
        }
        $(document.body).tr();
    }
    initLanguage();
})



RE: Mosaic "bug" - Daniel - 16.10.2019

Can you share your project via PM?


RE: Mosaic "bug" - admin - 16.10.2019

Can you run Chrome on this panel?


RE: Mosaic "bug" - fiLLLip - 31.10.2019

So, I managed to fix this somehow. I have rooted tablets, so the webview used was not the one downloaded from Play Store. I managed to replace the built-in webview with Bromite Webview: https://github.com/bromite/bromite/wiki/Installing-SystemWebView

Now it works perfectly again, so looks like it was a combination of too old webview and new features implemented in mosaic.