Ionic Framework / Cordova Camera

后端 未结 2 1964
旧时难觅i
旧时难觅i 2020-12-12 06:09

I\'m new to Ionic / Cordova Android dev. I\'ve been trying to put in cordova camera plugin for last few days with no outcomes. Please help me out.

What I want to do

相关标签:
2条回答
  • 2020-12-12 07:03

    You seem to be missing requireJS. Use npm install -g requirejs to install it via nodejs

    I believe this would be helpful in sorting things out for you.

    https://cordova.apache.org/docs/en/3.0.0/cordova_camera_camera.md.html

    https://github.com/azizimusa/phonegap-demo

    0 讨论(0)
  • 2020-12-12 07:07

    You seems to missing the import for the require lib.

    http://requirejs.org/ you can use the CDN //cdnjs.cloudflare.com/ajax/libs/require.js/2.1.11/require.min.js

    Just include

    <script src="//cdnjs.cloudflare.com/ajax/libs/require.js/2.1.11/require.min.js"></script>
    

    BEFORE you import the cordova.js.

    HTH

    0 讨论(0)
提交回复
热议问题