You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/04/04 20:27:51 UTC

[GitHub] [cordova-plugin-camera] tonymccallie opened a new issue #442: I'm getting "plugin_not_installed" errors on iOS devices with Ionic 4

tonymccallie opened a new issue #442: I'm getting "plugin_not_installed" errors on iOS devices with Ionic 4
URL: https://github.com/apache/cordova-plugin-camera/issues/442
 
 
   ## Problem
   I'm trying to get the plugin to work on iOS 12.2 and have tried compiling through Ionic's AppFlow and through my local XCode.
   
   
   
   ### What is expected to happen?
   I should be able to access Camera functions.
   
   
   ### What does actually happen?
   I keep getting:
   `[Warning] Native: tried calling Camera.getPicture, but the Camera plugin is not installed. (cordova.js, line 1732)
   [Warning] Install the Camera plugin: 'ionic cordova plugin add cordova-plugin-camera' (cordova.js, line 1732)
   [Error] ERROR – Error: Uncaught (in promise): plugin_not_installed
   Error: Uncaught (in promise): plugin_not_installed`
   
   
   
   ## Information
   I installed the plugin like so:
   ionic cordova platform add ios
   ionic cordova plugin add cordova-plugin-camera
   
   I've added these to my config.xml
   `<edit-config file="*-Info.plist" mode="merge" target="NSCameraUsageDescription">
           <string>need camera access to take pictures</string>
       </edit-config>
       <edit-config file="*-Info.plist" mode="merge" target="NSPhotoLibraryUsageDescription">
           <string>need photo library access to get pictures from there</string>
       </edit-config>
       <edit-config file="*-Info.plist" mode="merge" target="NSLocationWhenInUseUsageDescription">
           <string>need location access to find things nearby</string>
       </edit-config>
       <edit-config file="*-Info.plist" mode="merge" target="NSPhotoLibraryAddUsageDescription">
           <string>need photo library access to save pictures there</string>
       </edit-config>`
   
   And I installed the recommended npm packages. Those seem to be working, but the plugin does not. I have removed the platform and the plugin, reinstalled them. Removed node_modules and package-lock.json and re-ran npm -i. All to no avail.
   
   
   I can see the camera plugin being added in the output of the AppFlow build, but I don't have access to it. 
   
   What am I missing?
   
   
   ### Version information
   I'm using Ionic 4 on macOS 10.14.4 with XCode 10.2 and an iPhone Xs with iOS 12.2, but mostly I use Ionic AppFlow to compile my IPAs. I have other plugins working fine (like Geolocation)
   
   
   
   ## Checklist
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org