Skip to content Skip to sidebar Skip to footer

Xamarin.forms Android Permission Prompt Not Displaying

I am using the permission plugin by James Montemagno. I basically copied the example however the permission is unknown after the line to request it. No dialog even shows. var statu

Solution 1:

Some how MainApplication.cs was not installed along with the plugin. It was put in the correct directory but I had to manually add it to the project. Not really sure why that occurred but there you go.

Solution 2:

In my case the MainApplication.cs is not added in my Android Project. The better way that i used is to uninstall the CurrentActivity Plugin along with all the NUgets that depend on it. I again install CurrentActivity Plugin and all other plugins. Now the MainApplication.cs is in the root directory of the Android project.

Post a Comment for "Xamarin.forms Android Permission Prompt Not Displaying"