I'm developing a mobile application using Titanium web view, angularjs and mobile angular ui. I've create a mobile angular ui site that I load in locally using the Titanium web view.
My problem is that when I try to load the local site in a web view I see a blank page. To test the app I've uploaded the site to a php server and If I try to load the site using the mobile browser (for example chrome) everything is working fine.
I've noticed that if I do not include the css mobile-angular-ui-base.min I can see a not blank page in the Titanium web view
this is my app.js in titanium
var link = 'app/index.html';
var win = Ti.UI.createWindow();
var webview = Ti.UI.createWebView({
url:link
});
win.add(webview);
win.open({
modal : true
});
Create a new titanium project, create a folder called app inside Resource folder and copy inside all html,js,css files.
If you execute the mobile application the result will be a blank page. If you remove from index.html you will see the login page. And finally you try to launch the browser in the android device (chrome for example) and load the same site in a remote server (without remove the mobile-angular-ui-base.min.cs) you will see the correct login page (like in plunker example)
this is my Android Emulator settings:
Name: Nexus_5_API_23_x86
CPU/ABI: Google APIs Intel Atom (x86)
Target: Google APIs (API level 23)
Skin: 1080x1920
SD Card: 200M
hw.dPad: no
hw.accelerometer: yes
hw.device.name: Nexus 5
vm.heapSize: 64
skin.dynamic: no
hw.device.manufacturer: Google
hw.gps: yes
hw.audioInput: yes
tag.id: google_apis
hw.camera.back: emulated
hw.mainKeys: no
hw.camera.front: emulated
hw.lcd.density: 480
hw.device.hash2: MD5:2fa0e16c8cceb7d385183284107c0c88
hw.ramSize: 1536
hw.trackBall: no
hw.battery: yes
hw.sdCard: yes
tag.display: Google APIs
hw.keyboard: yes
hw.sensors.proximity: yes
disk.dataPartition.size: 200M
hw.sensors.orientation: yes
avd.ini.encoding: UTF-8
hw.gpu.enabled: yes
Please help. Thanxs