Software Archive
Read-only legacy content

Camera error Can't find variable:intel

Yuta_M_
Beginner
883 Views

Hi!

I try to use camera in my application.

In TEST tab, DEBUG tab, my application works well.

so, I build my application for iOS.

But , camera of build application doesn't works well.

This is code.

 

 try{
    intel.xdk.camera.takePicture(50,true,"jpg");
    }catch(e){
        alert(e);
    }

I got error message.

ReferenceError: Can't find variable: intel

What does course this error ?

I checked plugins.

How do I do to use camera in build application?

Than you very much for your time, I look forward to hearing from you in due course.

Best regards,

 

 

 

 

0 Kudos
4 Replies
John_H_Intel2
Employee
883 Views

There is currently a bug with plugin in XDK1878. We are working on a fix but in the mean time, it will be easier to reinstall 1826 and test with that. Its possible the plugin is not actually being included, which will cause this error.

https://software.intel.com/en-us/forums/topic/545064

0 Kudos
Yuta_M_
Beginner
883 Views

Thanks very much for your reply.

Immediately, I installed 1829 and build application.

But, application got error.

TypeError: undefined is not an object( evaluating 'intel.xdk.camera.takePicture')

The settings of my application is wrong?

I checked INTEL XDK PLUGINS/Camera.

無題.png

What did course this error?

 

 

0 Kudos
Amrita_C_Intel
Employee
883 Views

Hello, 

By Test or Debug do you mean you are testing that on device or emulator? Have you followed all the steps to get the certificate and provisioning profile before building your application?  

Thanks,

Amrita

0 Kudos
Yuta_M_
Beginner
883 Views

Hello,

Yes, I mean that.

I can build application, still is provisioning profile wrong ?

And, cordova plugin camera works well, but Intel XDK plugin camera doesn't work.

Thanks,

0 Kudos
Reply