263
Views
11
Comments
[Image Picker plugin] Demo example
Question
image-picker-plugin
Mobile icon
Forge asset by Barduino

Here is a simple demo of this component.

Enjoy

ImagePickerDemo.oap
2024-12-04 07-24-25
Amol

It's not working, Showing error message 1: cordova is not defined

2019-02-20 16-28-20
Dave Schuler

Also on the Image Picker Details tab in the Forge there is this:

We are using OutSystems 10 Version 10.0.828.0.  

2019-02-20 16-28-20
Dave Schuler

When I run ImagePickerDemo above in a web browser, it produces the error "1: cordova is not defined".  That makes sense:  a web browser is not a mobile device.  However, when I run ImagePickerDemo via OutSystems Now, it produces the message "2: Plugin is not installed".  How do I load the plugin?

2019-09-24 18-41-25
Jorge Martins
 
MVP

Hi Amol and David,

In order to test custom plugins (not on the list of supported plugins of OutSystems Now) you will always have to do it from a native app running on your device.

2024-12-04 07-24-25
Amol

Hello Jorge, I have also tried by installing APK in Android, But the app gets crashed. I have attached error log for both the error messages. 




2019-09-24 18-41-25
Jorge Martins
 
MVP

Ok, from that error seems that:

  • There's effectively a problem with the plugin. You may want to check the logs of the build process for any errors from MABS while generating the native app. And you may also want to contact someone from the team directly.
  • You are not protecting your application against it (before using a functionality from a plugin you should always test if the plugin is available and if it isn't have a alternative plan (bypass that bit of functionality, warn the user it cannot proceed, or any other viable solution given your requirements). Why? Because your application code is automatically updated when your devices are running the application, and if an olde version of your native application gets updated with code that relies on a plugin it doesn't have... it will crash (just like it is crashing now).
2025-11-19 06-14-01
Miguel Verdasca
Champion

It's not working... The application bursts.

2019-09-24 18-41-25
Jorge Martins
 
MVP

Hi Nuno,

Your post doesn't give any useful information that could help the community figure out what the issue could be...

2025-11-19 06-14-01
Miguel Verdasca
Champion

Jorge Martins wrote:

Hi Nuno,

Your post doesn't give any useful information that could help the community figure out what the issue could be...

Hi Jorge,

When I tap the get image button, the app crash.

And don't generate any log.


regards,
Nuno 


UserImage.jpg
Guilherme Jesus

Hi guys.

I was facing the same issue until i turned on the storage permission for this app. By default is not asking the permission. 


Cheers,

Guilherme

UserImage.jpg
mjson

Guilherme Jesus wrote:

Hi guys.

I was facing the same issue until i turned on the storage permission for this app. By default is not asking the permission. 


Cheers,

Guilherme

Hi any update on this, i'm facing the same issue.

i was able to catch the error message before app crashed.

"<appname> cannot be used, please try to allow permissions"

 Thanks!

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