$ionicPopup templateUrl not working on real devices: ERR_FILE_NOT_FOUND


#1

On real devices the app can’t find templates for popups.

var popup = $ionicPopup.show({
  templateUrl: 'templates/myPopup.html',
   ....
});

Using chrome device debugger, here’s the error:
Failed to load resource: net::ERR_FILE_NOT_FOUND file:///android_asset/www/templates/myPopup.html

On browsers it’s working well. I don’t know why it can’t find the template on devices…