Basic problem related PhoneGap

  • 1
  • Question
  • Updated 8 years ago
I am developing an App for cross platform and I am using cordova.js but it working only on iOS not in android, how can do this? Is there any cordova.js for each device or I have to use several js for each device? please reply if you know the solution.
Photo of Vikas

Vikas

  • 6 Posts
  • 0 Reply Likes

Posted 8 years ago

  • 1
Photo of Andrew Lunny

Andrew Lunny

  • 1911 Posts
  • 199 Reply Likes
If you're using PhoneGap Build, avoid adding a Cordova JavaScript file into your package - there is a different JS file for each platform. You will just want to add a script tag like this:


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


More details are here: https://build.phonegap.com/docs/prepa...