Probelm with Phonegap build

I just made an app and headed to phone gap build but it doesn’t work as supposed. After building, pages aren’t loading fine, the layout is really messed up. same app works fine in the browser what could be the problem with my files? heres a link to the project on github https://github.com/shemzz/oag I’m feel I’m doing something wrong; not sure what.

Hi, just a glance at your project and;

<!-- Cordova -->  
<!-- <script src="js/cordova.js"></script> -->

So, cordova its not beeing loaded. and it shoould be loaded like this

<script src="cordova.js"></script>

It will be injected automatically when you debug, or build with cordova.

Also you are crating the view in a strange way, same var, diferents views, same route.

// Init/Create left panel view
var mainView = app.views.create('.view-left', {
  url: '/'
});

// Init/Create main view
var mainView = app.views.create('.view-main', {
  url: '/'
});

I dont know, maybe there is the layout issue?

1 Like

Yep!!! I fixed it. I was getting it All wrong in the first place. All I simply did was to create a new cordova project, copy the content of my Framework7 www folder and put in the new cordova’s www folder. phonegap build was successful. :joy: thanks @pvtallulah your reply was really helpful