I find it confusing that Xamarin docs examples suggest adding permissions to AssemblyInfo.cs like that:
// Need to access the internet for GCM
[assembly: UsesPermission(Name = "android.permission.INTERNET")]
Why? Permissions are usually defined in AndroidManifest.xml and there's even GUI for that in Xamarin Studio.
Also seems like AssemblyInfo.cs contains information about title and version:
[assembly: AssemblyTitle("MyApp")]
[assembly: AssemblyVersion("1.0.0")]
What does that mean? AndroidManifest.xml also contains title and version info.
How are they related? Seems to be basic knowledge, but didn't found clear explanation about that.
The resulting merged AndroidManifest. xml resides in the obj subdirectory; for example, it resides at obj/Debug/android/AndroidManifest.
xml file. Double click Properties to open the Project Options. Click the “Android Manifest” tab.
Xamarin allows developers to develop native applications for Android, iOS and Windows Phone platforms, with a single codebase, i.e. C# and a single IDE, i.e. Visual Studio . Thus, a developer can be able to develop native mobile applications without knowing Java, Kotlin, Objective-C or Swift.
Xamarin just added this way as another way to add permissions but at assembly level, if you do not use it no problem!, you can continue setting the permissions as usual in the AndroidManifest.xml. Reference in this link
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With