Xamarin iOS How to File.ReadAllBytes a file inside /private/var/mobile/Containers/Shared/AppGroup/
string filePath = "/private/var/mobile/Containers/Shared/AppGroup/7E6455EB-2EF9-417E-BC79-71BA25B53853/File Provider Storage/file.pdf" byte[] byteFile = File.ReadAllBytes(filePath); When I run the code above on Xamarin iOS I get an…
ImageView not updating in RecyclerView
I have a RecyclerView with the following item layout: <?xml version="1.0" encoding="utf-8"?> <GridLayout xmlns:android="http://schemas.android.com/apk/res/android"…
Cannot create an IOS archive... Process cannot be executed on XMA server. There was an error unzipping the file... The specified path, file name, or both are too long.
I am working on an update to a Xamarin.Forms app In Visual Studio Community 2022 on a Windows 11 Pro machine. I receive the following error when I try to archive the iOS project for distribution: Cannot create an IOS archive 'XXXXXXXX.iOS'. Process…
Xamarin.Android ViewPager2 Requires match_parent
I have a Xamarin.Android app in which I am trying to use ViewPager2. The ViewPager2 is defined in my layout as follows: <androidx.viewpager2.widget.ViewPager2 android:id="@+id/vpStartScore" android:layout_width="match_parent"…
Pre-Measuring a RecyclerView
I have a Custom View that inherits from RecyclerView. Once created, the RecyclerView will always have the same number of items, all of which will remain the same size once created. All other items on the page will remain the same size as well (except of…
One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts
I have a Xamarin Android application that integrates the uGrokit RFID library. Recently, I updated the targetSdkVersion to 34 in the Android Manifest. After deploying the build, the app works without crashes on devices running Android 13. However,…
Theme.MaterialComponents.Light.NoActionBar Causes Visual Studio 2022 to Ignore My Styles in Designer
I am attempting to add a com.google.android.material.slider.Slider to my Xamarin.Android app. This forced me to change my AppTheme is styles.xml to Theme.MaterialComponents.Light.NoActionBar instead of Theme.Design.NoActionBar. Doing this caused the…
Visual Studio 2022 Xamarin Forms UWP Create App Package Error: Task 'SignAppxPackage' failed. The application has failed to start because its side-by-side configuration is incorrect.
I am trying to create an app package (for my Xamarin Forms UWP app) to upload to the windows store. I am using Microsoft Visual Studio Professional 2022 (ARM 64-bit) Version 17.8.3. In Visual Studio, I right-click on the UWP project -> Publish ->…
Customizing Layout / Position of RadioButton Without RadioButtonGroup
I want the layout of my app to have several RadioButton(s) that are arranged in very unusual ways, there are other View(s) in the layout that make RadioButtonGroup inappropriate because it would contain many other View(s) and be hard to layout. I am…
Xamarin/MAUI iOS Local Push Connectivity
I have the local push entitlement from apple and also a separate bundle id for a new local push extension. I am project referencing this extension project from my main iOS .csproj and setting these flags: …
Measuring A Slider Inside A Custom View Inheriting From GridLayout
I have a Custom View that inherits from GridLayout. The xml layout file is as follows: <?xml version="1.0" encoding="utf-8"?> <GridLayout xmlns:android="http://schemas.android.com/apk/res/android"…
Measuring A Slider Inside A Custom View Inheriting From GridLayout
I have a Custom View that inherits from GridLayout. The xml layout file is as follows: <?xml version="1.0" encoding="utf-8"?> <GridLayout xmlns:android="http://schemas.android.com/apk/res/android"…
Previewing Xamarin.Android ScrollView Content In Visual Studio 2022 Designer
I have a Xamarin.Android app that contains a ScrollView. Everything functions perfectly, but because there is obviously more content than fits on the screen (which is, of course, why I am using a ScrollView), it is not all visible in the Visual Studio…
Xamarin Forms / API Level 34 / Deployment Failed
While migrating the mobile app to some new tech, we need to deploy an update to our current app which requires Android 14. I've updated the AndroidManifest.xml to 34: <uses-sdk android:minSdkVersion="28"…
Centering a VectorDrawable in a RecyclerView ViewHolder
I have a Xamarin.Android app that contains a RecyclerView, which uses a ViewHolder whose root element is a GridLayout. I have a VectorDrawable (a .xml file in my drawable folder) that I want to center in the ViewHolder. I have tried doing this several…
Slider vs SeekBar on Xamarin.Android in Visual Studio 2022
I am working on adding a Slider or SeekBar to a Xamarin.Android app. There are 2 scenarios in which I will be using this. The first one is just a simple standard select a value from x to y scenario. The second scenario is more unique, although I have…
Lower the 'Deployment Target' to see older simulators or check your Apple SDK path warning after update
I can't run my Xamarin Forms application on Mac in the simulator, writes: Lower the 'Deployment Target' to see older simulators or check your Apple SDK path warning after update
Xamarin ios push notification not working
I have a problem with push notifications on a xamarin project situation: I have a working xamarin android / ios code with bundle id com.xxxx.abc. I have to republish the same app with a different brand, I created a new plist, new registration on…
How to add google tag manager in Xamarin forms app
I want to integrate Google Tag Manager into our existing Xamarin.Forms app, which is developed using the .NET Standard 2.1 framework. This integration will enable us to manage and deploy marketing tags and tracking scripts more efficiently without…
Adding Ticks & Labels To A com.google.android.material.slider.Slider
I currently have a com.google.android.material.slider.Slider using the following code and creates the following screenshot: <com.google.android.material.slider.Slider android:id="@+id/sldPlayersPerTeam" …