Ionic apk Play Protect blocked

Hello.

I Just generated an apk with: ionic cordova build android and when installing it on the mobile gives me the following error apk play protect blocked.

Any solution?

ionic cordova build apk is for debug purposes only, to build an app for upload to playstore you should use:
ionic cordova build andoid --release
then you should sign it ,also zipalign it:
please follow this guide https://ionicframework.com/docs/v1/guide/publishing.html

this error is without uploading it to the platstore just sending the apk the mobile

oh i see have u ticked install from unknown sources in your settings?

Yes. install from unknown sources in your settings

change the name of apk and try again, if a pop up shows click install anyway

Here is the screenshort when we try installing first time ionic app in device,:


You just have click on ( install Anyway ) otherwise it will block this for installation because play protect does not recognize the app developer before publishing the app.
Try installing this app on another device or publish it and then install it from playstore. or simply reset your device.

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

Adding above 2 lines as per the documentation deploying-mobile resolved the issue for me