Hello,
I am an experienced software engineer, especially in cross-platform development (Android/IOS and WebApplications). During the work at my company I was mainly responsible for the development of a framework, which generates responsive and portable applications for our products.
I think, i know what your problem is. You need to implement runtime permissions. I would be glad, if i could help you out with this.
Kind Regards,
Alexander Seidl