Software Archive
Read-only legacy content
17061 Diskussionen

Camera error Can't find variable:intel

Yuta_M_
Einsteiger
880Aufrufe

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 Antworten
John_H_Intel2
Mitarbeiter
880Aufrufe

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

Yuta_M_
Einsteiger
880Aufrufe

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?

 

 

Amrita_C_Intel
Mitarbeiter
880Aufrufe

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

Yuta_M_
Einsteiger
880Aufrufe

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,

Antworten