Photo library request authorization not working on android


#1

Hy Guys

I am adding photo library to my ionic 2 project and it works fine on IOS devices. However I am not able to get photo library requestauthorization method popup on android device.

platform.ready().then(() => {
      // Okay, so the platform is ready and our plugins are available.
      // Here you can do any higher level native things you might need.
      StatusBar.styleDefault();
      this.hideSplashScreen();
      this.menuCtrl.open();
      this.photoLibrary.requestAuthorization();
    });

photoLibrary.requestAuthorization shows popup on iOS device but not showing on android app start.


#2

is https://ionicframework.com/docs/native/photo-library/?


#3

@Sujan12 I have written this.photoLibrary.requestAuthorization(); but it is not showing any popup as it shows in ios.


#4

and also I am using the same native photo library provided by ionic


#5

So the same one I linked to and asked you a Yes/No question about? Or not?


#6

Hey @owaisbakhtiar… Were you able to resolve this? I am also facing the same issue. It asks for permissions on few android device and on some others it does not ask for permission and hence it does not work there.