RSS

Android and AngularJS

20 ינו

Hy guys,

 

The new possibilities of the HTML5 DOM options can cause problems when creating embedded HTML Android apps.

You should always ensure that whatever the HTML page wants to do, the application allows.

 

One example I found today:

 

The problem:

Anything in a DIV of class ng-scope is not dysplaing in Android webView but is displaying in browser

 

Reason:

Uses HTML5 DOM storage, that is not automatically allowed in Android WebView

 

Solution:

Enable the DOM storage, that is not automatically enabled in Android webView ->

_webView.getSettings().setDomStorageEnabled(true);

 

Cheers,

 

Thanks to Shachar Smile

 
2 תגובות

פורסם ע"י ב- ינואר 20, 2014 ב- Uncategorized

 

2 תגובות ל-“Android and AngularJS

  1. Burak

    מרץ 16, 2015 at 4:37 pm

    Solved my problem thank you!

     
  2. Rahul Gupta

    מאי 10, 2018 at 4:42 am

    !..Thank you so much, this helped

     

כתיבת תגובה