capacitor-file-picker's People
Forkers
mantoshbehera2019 mrakowski0 wilsonglasser brankoenero opusdevteam perjakasunda cxfreeze nikita-schetko avareto-gmbh karlbuys andutoptal qliqdevcapacitor-file-picker's Issues
App Crashing When Choosing the file in File Picker
Framework Which I am Using:
Ionic: 6.18.1
Ionic React: 5.5.0
Capacitor Plugins:
Capacitor Android: 3.2.5
Capacitor Core: 3.2.5
Capacitor File Picker: 1.0.10
Error Facing in Android Studio
com.epicshaggy.filepicker.filepicker.filepickerresult argument 2 has type. Please check this and do needful
App keeps crashing
I installed the plugin, copied the example, built the app and I am getting the file chooser and can see files on my device, but whenever I select a file, the app crashes, it just closes the app.
Ionic:
Ionic CLI : 6.18.0 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.8.4
@angular-devkit/build-angular : 12.1.4
@angular-devkit/schematics : 12.2.11
@angular/cli : 12.1.4
@ionic/angular-toolkit : 4.0.0
Capacitor:
Capacitor CLI : 3.2.5
@capacitor/android : 3.2.5
@capacitor/core : 3.2.5
@capacitor/ios : 3.2.5
Support For Capacitor 3 && File types not working
The import from @capacitor/core is deprecated from Capacitor v3.
Also even after adding file type to only "image/*" i am able to select PDF file also.
It can be viewed in file manager
app crashes after selecting a file on android
java.lang.IllegalArgumentException: method com.epicshaggy.filepicker.FilePicker.filePickerResult argument 2 has type android.app.Instrumentation$ActivityResult, got androidx.activity.result.ActivityResult at java.lang.reflect.Method.invoke(Native Method) at com.getcapacitor.Plugin.triggerActivityCallback(Plugin.java:154) at com.getcapacitor.Plugin.lambda$initializeActivityLaunchers$0$Plugin(Plugin.java:116) at com.getcapacitor.-$$Lambda$Plugin$9tit0PZrRMA5UA4Z_xqI4yDk4JY.onActivityResult(Unknown Source:6) at androidx.activity.result.ActivityResultRegistry$1.onStateChanged(ActivityResultRegistry.java:145) at androidx.lifecycle.LifecycleRegistry$ObserverWithState.dispatchEvent(LifecycleRegistry.java:354) at androidx.lifecycle.LifecycleRegistry.forwardPass(LifecycleRegistry.java:265) at androidx.lifecycle.LifecycleRegistry.sync(LifecycleRegistry.java:307) at androidx.lifecycle.LifecycleRegistry.moveToState(LifecycleRegistry.java:148) at androidx.lifecycle.LifecycleRegistry.handleLifecycleEvent(LifecycleRegistry.java:134) at androidx.lifecycle.ReportFragment.dispatch(ReportFragment.java:68) at androidx.lifecycle.ReportFragment$LifecycleCallbacks.onActivityPostStarted(ReportFragment.java:187) at android.app.Activity.dispatchActivityPostStarted(Activity.java:1279) at android.app.Activity.performStart(Activity.java:7967) at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3335) at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221) at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201) at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2047) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:224) at android.app.ActivityThread.main(ActivityThread.java:7590) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
using Capacitor 3, android 10 ,target SDK 30
plugin v 1.0.10
do you know what causes this ? thank you
ERROR TypeError: Cannot read property 'showFilePicker' of undefined
Hi!
I am not able to get your plugin to work, with IONIC 5.x and Capacitor 2.3.x. I am follwing your sample, but the plugin reference variable is alway undefined:
import { Plugins } from '@capacitor/core';
const { FilePicker } = Plugins;
....
// ERROR TypeError: Cannot read property 'showFilePicker' of undefined.
FilePicker.showFilePicker(...)
Any idea what went wrong?
Would be very helpfull if you could provide a minimal running sample within your repository.
Thanks and Regards!
Avareto
Ability to select multiple files?
It would be great to have an option to specify whether the user can select on or multiple files ๐
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.