493
Views
9
Comments
Solved
[Camera Plugin] error 2, Camera Plugin is unavailable
Question
camera-plugin
Mobile icon
Forge asset by OutSystems

Hello - I am referencing the camera and common plugin however when I do the checkCameraPlugin it returns error code 2, Camera Plugin is unavailable.  What else do I need to load/add to get this to work?

2017-08-09 12-12-29
Jason Herrington
Solution

Ricardo,

Unfortunately we never found what caused our issue and just regenerating "fixed" whatever it was.

2017-08-09 12-12-29
Jason Herrington

Resolved: had to regenerate the mobile app and reinstall it on my mobile device for it to "see" that the plugin was there.

2018-05-10 22-41-57
Carlos Filipe Simões
Staff

Awesome, glad it worked out, Jason!

Thanks for sharing!

UserImage.jpg
Ricardo Romero

Hi Jason and Carlos,

I am having similar issues, but re-generating the app doesn't work. I have tried to remove the plugin and add the reference again, but sadly no progress.

The only way it works for me is by removing the CheckCameraPlugin. 

I am using the CameraPlugin 2.0.3 version and my platform version is 10.0.603.0

Does anything come to mind that might be the cause of the problem?

2017-08-09 12-12-29
Jason Herrington
Solution

Ricardo,

Unfortunately we never found what caused our issue and just regenerating "fixed" whatever it was.

2017-07-05 22-17-18
Henrique Batista
Staff

Hi Ricardo,

By looking at your code, you have an if wrong. You have to swap the connectors because from your image/code, if the plugin is available you're sending an error message.

Cheers,

UserImage.jpg
Ricardo Romero

Henrique Batista wrote:

Hi Ricardo,

By looking at your code, you have an if wrong. You have to swap the connectors because from your image/code, if the plugin is available you're sending an error message.

Cheers,

Hi Henrique,

You are absolutely correct. In my haste and confusion I forgot to swap the connectors. 

It has been a long day for me   


2017-07-05 22-17-18
Henrique Batista
Staff

Ricardo Romero wrote:

Henrique Batista wrote:

Hi Ricardo,

By looking at your code, you have an if wrong. You have to swap the connectors because from your image/code, if the plugin is available you're sending an error message.

Cheers,

Hi Henrique,

You are absolutely correct. In my haste and confusion I forgot to swap the connectors. 

It has been a long day for me   


AHAHAH

We all have those days   


2022-07-07 18-45-50
Niels Favreau

We have the same problem. The difference with us, it is working on our DEV environment but not on TEST environment. Regenerating the app doesn't work. Any ideas?

2018-05-10 22-41-57
Carlos Filipe Simões
Staff

Hey, Niels,

Are you sure that the app generated successfully on the TST environment? Sometimes it may fail and you could be downloading an older version of the app.

If so, are there any differences between the DEV and TST environment that would explain the different result? Maybe a different set of results?

Best regards,

Carlos Simões

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.