Github user douglasmoraisdev commented on the issue:

    https://github.com/apache/cordova-plugin-camera/pull/282
  
    As I mentioned earlier, I am developing a WebRTC application based on 
Google WebRTC Codelabs. 
(https://codelabs.developers.google.com/codelabs/webrtc-web/).
    If you try to follow the step 4 of this Codelab on a Ionic (v1) project, I 
guess you can reproduce the error.
    
    I fixed the bug in my project by adding the PR code in plugins.xml OR by 
adding the same permissions in /platforms/android/AndroidManifest.xml manually 
(which is the same thing)
    
    If this help, this is my package.json on my Ionic (v1) project:
    '''
    {
        "name": "mobile",
        "version": "0.0.1",
        "description": "Real Time Comunicator",
        "devDependencies": {
            "@ionic/cli-plugin-cordova": "1.4.1",
            "@ionic/cli-plugin-gulp": "1.0.2",
            "@ionic/cli-plugin-ionic1": "2.0.1",
            "gulp": "^3.9.1",
            "gulp-clean-css": "^3.7.0",
            "gulp-rename": "^1.2.0",
            "gulp-sass": "^3.1.0"
        },
        "dependencies": {
            "@ionic-native/camera": "^4.0.1",
            "@ionic-native/diagnostic": "^4.0.1",
            "clean": "^4.0.2",
            "cordova-android": "^6.2.3",
            "cordova-browser": "^4.1.0",
            "cordova-plugin-android-permissions": 
"git+https://github.com/NeoLSN/cordova-plugin-android-permissions.git";,
            "cordova-plugin-camera": 
"git+https://github.com/apache/cordova-plugin-camera.git";,
            "cordova-plugin-compat": "^1.1.0",
            "cordova-plugin-console": "^1.0.7",
            "cordova-plugin-crosswalk-webview": 
"git+https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview.git";,
            "cordova-plugin-device": "^1.1.6",
            "cordova-plugin-file": "^4.3.3",
            "cordova-plugin-media-capture": 
"git+https://github.com/apache/cordova-plugin-media-capture.git";,
            "cordova-plugin-microphone": 
"git+https://github.com/amitgur/cordova-plugin-microphone.git";,
            "cordova-plugin-splashscreen": "^4.0.3",
            "cordova-plugin-statusbar": "^2.2.3",
            "cordova-plugin-whitelist": "^1.3.2",
            "ionic-plugin-keyboard": "^2.2.1"
        },
        "cordova": {
            "plugins": {
                "cordova-plugin-console": {},
                "cordova-plugin-device": {},
                "cordova-plugin-splashscreen": {},
                "cordova-plugin-statusbar": {},
                "cordova-plugin-whitelist": {},
                "ionic-plugin-keyboard": {},
                "cordova-plugin-crosswalk-webview": {
                    "XWALK_VERSION": "23+",
                    "XWALK_LITEVERSION": "xwalk_core_library_canary:17+",
                    "XWALK_COMMANDLINE": "--disable-pull-to-refresh-effect",
                    "XWALK_MODE": "embedded",
                    "XWALK_MULTIPLEAPK": "true"
                },
                "cordova-plugin-camera": {},
                "cordova-plugin-media-capture": {},
                "cordova-plugin-android-permissions": {}
            },
            "platforms": [
                "android",
                "browser"
            ]
        }
    }
    '''
    
    If you still need more info, i will commit a simple code and tell you when 
to do it.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to