title: OpenStreetMap not showing up on Android
body: <p>I'm trying to create an app whose main ability is to show items on a map. I decided to use ionic (on top of Apache Cordova) as my base framework and OpenStreetMap as the map provider.
  When using ionic to serve the app to my Browser (Chrome, btw) everything works as expected. Map is showing up the way I want it. Using my cellphone (LG Nexus 4) to preview the app results in tiles not showing up. What is strange is that controls work (I used the angular binding to two input fields to check that), which means I can navigate around, zoom and all that, it simply does not show anything.</p>
  
  <p>Browser view: <a href="http://i.stack.imgur.com/XAfWc.png" rel="nofollow">Here it works</a><br />
  Phone view: <a href="http://i.stack.imgur.com/eJkvv.png" rel="nofollow">Here it doesn't</a></p>
  
  <p>Here's some of the code I used:</p>
  
  <p><em>map.html:</em></p>
  
  <pre><code>&lt;ion-view ng-controller="StringController as s" view-title="{{s.strings.map}}"&gt;
  &lt;ion-content ng-controller="MapController"&gt;
      &lt;leaflet center="center" defaults="defaults"&gt;
          &lt;input type="text" ng-model="center.lat" style="margin-left:200px;" /&gt;
          &lt;input type="text" ng-model="center.lng" style="margin-left:200px;" /&gt;
      &lt;/leaflet&gt;
    &lt;/ion-content&gt;
  &lt;/ion-view&gt;
  </code></pre>
  
  <p><em>controller.js (excerpt):</em></p>
  
  <pre><code>.controller('MapController', ['$scope', function($scope){
    angular.extend($scope, {
      center: {
        lat: 51.1642292,
        lng: 10.4541194,
        zoom: 6
      },
  
      defaults: {
        zoomControl: false
      }
    });
  }]);
  </code></pre>
  
  <p><em>index.html</em></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"&gt;
      &lt;title&gt;&lt;/title&gt;
  
      &lt;link href="lib/ionic/css/ionic.css" rel="stylesheet"&gt;
      &lt;link href="css/style.css" rel="stylesheet"&gt;
      &lt;link href="lib/leaflet/leaflet.css" rel="stylesheet"&gt;
  
      &lt;!-- ionic/angularjs js --&gt;
      &lt;script src="lib/ionic/js/ionic.bundle.js"&gt;&lt;/script&gt;
  
      &lt;!-- cordova script (this will be a 404 during development) --&gt;
      &lt;script src="cordova.js"&gt;&lt;/script&gt;
  
      &lt;!-- openstreetmaps vendor plugin --&gt;
      &lt;script src="lib/leaflet/leaflet.js"&gt;&lt;/script&gt;
      &lt;script src="lib/angular-leaflet-directive/dist/angular-leaflet-directive.min.js"&gt;&lt;/script&gt;
  
      &lt;!-- your app's js --&gt;
      &lt;script src="js/app.js"&gt;&lt;/script&gt;
      &lt;script src="js/controllers.js"&gt;&lt;/script&gt;
      &lt;script src="js/strings.js"&gt;&lt;/script&gt;
    &lt;/head&gt;
  
    &lt;body ng-app="finder"&gt;
      &lt;ion-side-menus&gt;
          &lt;ion-side-menu-content&gt;&lt;/ion-side-menu-content&gt;
          &lt;ion-side-menu side="left"&gt;&lt;/ion-side-menu&gt;
      &lt;/ion-side-menus&gt;
  
      &lt;ion-nav-view&gt;&lt;/ion-nav-view&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><em>AndroidManifest.xml</em></p>
  
  <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="0.0.1" package="info.wphp.finder" xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" /&gt;
      &lt;application android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name" android:supportsRtl="true"&gt;
          &lt;activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:theme="@android:style/Theme.Black.NoTitleBar" android:windowSoftInputMode="adjustResize"&gt;
              &lt;intent-filter android:label="@string/launcher_name"&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
      &lt;uses-sdk android:minSdkVersion="10" android:targetSdkVersion="21" /&gt;
      &lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>As you might be able to tell, I'm fairly new to app delevopment with Cordova. I'd like any sort of help here, because this is driving me insane. If you'd like to see more code, please let me know.</p>