You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
today i got a problem . I click the imagepicker button , i have not choose yet, It has entered the callback function and selected two unknown images for me . ( I'm going to make it pop up an alert when I click on the imagepicker button to show how many images there are, and it's going to say the results.length is 2. not choose yet !!!) .
this happens only the first time I run the app and the first time I go to this page, when I went back to the previous page and re-entered , It worked again.
I haven't touched the code since last time . do you know what's wrong with it ??? thank you soso much !!
The text was updated successfully, but these errors were encountered:
I don't know the exact reason, but it may be the permission issue.
Try to request the permission first to avoid this.
Ionic example
exportclassMyPageimplementsOnInit{constructor(privateimagePicker: ImagePicker){}ngOnInit(){// try to request permission on initthis.imagePicker.requestReadPermission()}onPick(){// do pick image}}
today i got a problem . I click the imagepicker button , i have not choose yet, It has entered the callback function and selected two unknown images for me . ( I'm going to make it pop up an alert when I click on the imagepicker button to show how many images there are, and it's going to say the results.length is 2. not choose yet !!!) .
this happens only the first time I run the app and the first time I go to this page, when I went back to the previous page and re-entered , It worked again.
I haven't touched the code since last time . do you know what's wrong with it ??? thank you soso much !!
The text was updated successfully, but these errors were encountered: