i new ios development. have created app phonegap working fine android. ios not working. have installed plugins.
right testing camera plugin.
but showing following error.
error: can't find variable: camera ionic.bundle.js:20306 clickpicture@file:///private/var/mobile/containers/bundle/application/cf215d1d-130f-4901-b935-c086a94a5579/test_proj.app/www/app/common/camera-service.js:11:38 _takepicture@file:///private/var/mobile/containers/bundle/application/cf215d1d-130f-4901-b935-c086a94a5579/test_proj.app/www/app/registration/registeration-controller.js:54:44 $parsefunctioncall@file:///private/var/mobile/containers/bundle/application/cf215d1d-130f-4901-b935-c086a94a5579/test_proj.app/www/lib/ionic/js/ionic.bundle.js:21044:23 file:///private/var/mobile/containers/bundle/application/cf215d1d-130f-4901-b935-c086a94a5579/test_proj.app/www/lib/ionic/js/ionic.bundle.js:53439:21 $eval@file:///private/var/mobile/containers/bundle/application/cf215d1d-130f-4901-b935-c086a94a5579/test_proj.app/www/lib/ionic/js/ionic.bundle.js:23100:28 $apply@file:///private/var/mobile/containers/bundle/application/cf215d1d-130f-4901-b935-c086a94a5579/test_proj.app/www/lib/ionic/js/ionic.bundle.js:23199:28 file:///private/var/mobile/containers/bundle/application/cf215d1d-130f-4901-b935-c086a94a5579/test_proj.app/www/lib/ionic/js/ionic.bundle.js:53438:19 eventhandler@file:///private/var/mobile/containers/bundle/application/cf215d1d-130f-4901-b935-c086a94a5579/test_proj.app/www/lib/ionic/js/ionic.bundle.js:11713:25 dispatchevent@[native code] triggermouseevent@file:///private/var/mobile/containers/bundle/application/cf215d1d-130f-4901-b935-c086a94a5579/test_proj.app/www/lib/ionic/js/ionic.bundle.js:2863:20 tapclick@file:///private/var/mobile/containers/bundle/application/cf215d1d-130f-4901-b935-c086a94a5579/test_proj.app/www/lib/ionic/js/ionic.bundle.js:2852:20 taptouchend@file:///private/var/mobile/containers/bundle/application/cf215d1d-130f-4901-b935-c086a94a5579/test_proj.app/www/lib/ionic/js/ionic.bundle.js:2975:13 there 2 config.xml files in project 1 in root folder , other 1 in staging folder
i made entry of camera plugin in both files tried individuals file.
i have tried 2 types of entries in config.xml
first 1 :
<feature name="camera"> <param name="ios-package" value="org.apache.cordova.camera" /> </feature> second 1
<feature name="camera"> <param name="ios-package" value="cdvcamera" /> </feature> but continuously showing same error.
here project file structure. trying fix last 2 days. dont know wrong.

after spent lot of time. found plugin not updating ionic.bundle.js run cordova platform update ios command.
and working fine.
Comments
Post a Comment