none
Cordova Error: 3 errors message pop up continuously while cordova.js is included in ASP.NET MVC project RRS feed

  • Question

  • I have created a ASP.NET MVC application which I plan to use Cordova to transform it as a mobile app. One of the functionality of my app is using camera, the camera works fine in android but not in iOS. The error message pop up three times.

    1. gap_init:3

    2. gap:[null,"CoreAndroid","messageChannel","CoreAndroid426956664"]

    3. gap:[null,"CoreAndroid","show","CoreAndroid733756973"]

    I have added the following code in the layout.cshtml within my MVC project:

         <script src="~/cordovadist/android/cordova.js"></script>
    

    I guess the error is come from the above code because once I deleted this line, the error just never show up. However, if I did not include this line of code, the camera will never work in both android and ios. Therefore, it is a must to include the script tag. Is there any way to solve this? Please help. Thank you.

    Friday, December 6, 2019 8:21 AM