Open BrettButcher opened 4 years ago
Same problem
Downgrade to :
"cordova-plugin-telerik-imagepicker": "^2.3.2",
and
"@ionic-native/image-picker": "^4.18.0",
Downgrade to :
"cordova-plugin-telerik-imagepicker": "^2.3.2",
and"@ionic-native/image-picker": "^4.18.0",
Sorry to appear difficult, but on what basis? Is that something you have tried that just happened to work, or what do you know about later versions that cause it to crash? Is there some information somewhere about why you reference doing this? Many thanks...
Downgrade to :
"cordova-plugin-telerik-imagepicker": "^2.3.2",
and"@ionic-native/image-picker": "^4.18.0",
Sorry to appear difficult, but on what basis? Is that something you have tried that just happened to work, or what do you know about later versions that cause it to crash? Is there some information somewhere about why you reference doing this? Many thanks...
Yes, I made an application with Ionic 3 and tried the latest version for the Telerik image picker every time I installed and applied it, it was always an error and I returned to that version where it was stable and running smoothly. I had wasted too much time to find a solution. the fastest way is just to downgrade to the stable version. But for ionic 4 I don't think the version is compatible with the angular project.
If you have other plugins that use the support library, for instance version 27+
, make sure to set it to the same value:
<variable name="ANDROID_SUPPORT_LIBRARY_VERSION" value="27+" />
This fixes the issue for me on Ionic 4.
Fixes for ionic 4 you can use Capcaitor Camera here
Use camera option source to PHOTO:
interface CameraOptions { source: CameraSource.Photo }
and you can select images from library.
Same problem here.
Seems it's a problem with image size; uploading a screenshoot have not problem, but a real photo from camera or gallery crash the app.
I'm on ionic 1 and it works fine until now
I was having the same problem on Ionic 3.9.2.
For android I removed the package and then installed it directly from the repo instead of npm registry due to the official package is outdated and the more recent commits solve an issue with compatibility and add a new config option for cordova "config.xml".
What partially solved it for me on iOS was to add the key "disable_popover: true" on the configuration object, the only problem is that users report it works only no some versions #173, but typescript was complaining about the interface that in fact in the official package "@ionic-native/image-picker@4" is outdated, just recently they merge a pull request that solves that for the version 5 but this package can't be used on ionic 3.9.2 because is incompatible with angular... so for that they have the v4 branch where the most recent version is 4.20.0 but it has no recent changes, what I did was download the official repo of "ionic-team/ionic-native" modify the interface then compile the plugins as the docs say, copy the recently compiled module to the "node_modules" of my project, run "ionic cordova prepare ios" and build on xcode.
I already made a merge request to update the interface for the v4 branch, so until its approved and published on a new version for this branch, I think I will link the package and wait for the update.
My project is Ionic5 , this plugin crashed when use it's getPicture API. I find a solution
I have set this plugin up in my app. So far only Android. The plugin crashes immediately on activation and severs the connection from my pc to the phone. I am using ionic framework 4.7 with angular 8. I have tried another simpler template app and it works fine, but that doesn't have the file, deeplinks and other plugins that my main app has. Feedback from the forum is that this plugin is just buggy and should be avoided. Is this the case or am I missing something, are there any interactions I should k now about?