Microsoft Q&A

Xamarin

5,144 questions

A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.

Browse all .NET tags

5,144 questions with Xamarin tags

Sort by: Updated
0 answers

Failed to resolve assembly OpenTK version 3.1.0.0.0

Hi all of a sudden getting this odd error when running a Xamarin app project.iOS/MTOUCH: Error MT2002: Failed to resolve assembly: 'OpenTK, Version=3.1.0.0, Culture=neutral, PublicKeyToken=bad199fe84eb3df4' (MT2002) Any ideas what this is or how to…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,144 questions
asked 2023-09-09T15:57:06.3733333+00:00
SSB 71 Reputation points
commented 2023-09-11T05:55:16.5533333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 53,671 Reputation points Microsoft Vendor
1 answer

p8 certificate for remote messaging (azure notifications hub) problems?

Running into an problems setting up remote messaging: We have followed this guide: https://learn.microsoft.com/en-us/azure/notification-hubs/xamarin-notification-hubs-ios-push-notification-apns-get-started which includes setting up a .p8 certificates on…

Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
199 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,144 questions
Microsoft Intune iOS
Microsoft Intune iOS
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.iOS: An Apple mobile operating system.
119 questions
asked 2023-08-30T03:39:38.47+00:00
Leonard Harris 6 Reputation points
commented 2023-09-09T02:14:33.1333333+00:00
brtrach-MSFT 10,421 Reputation points Microsoft Employee
1 answer

Xamarin iOS - programmatically trusting CA (certificate authority)

Good afternoon. Could you help with the following problem? I need to connect a third-party certificate, for example "test.cer" for WebView to work correctly. In Android, I solved the problem as follows: 1. Added the certificate file to…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,144 questions
asked 2023-07-11T07:57:05.8266667+00:00
Akmal Mursalimov 0 Reputation points
edited a comment 2023-09-08T11:30:44.1566667+00:00
Akmal Mursalimov 0 Reputation points
1 answer One of the answers was accepted by the question author.

Button command is not working with Binding context in xamarin forms using MVVM

If we give BindingContext value for button , then button command is not hitting on click event in xamarin forms with MVVM architecture. From the below code snippet I have given BindingContext value as 1. So, when I click on Button the command is not…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,144 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
8,944 questions
asked 2023-09-01T09:20:53.31+00:00
Sindhu Kalyanapu 21 Reputation points
accepted 2023-09-07T10:27:35.5533333+00:00
Sindhu Kalyanapu 21 Reputation points
0 answers

Getting issue while running the Xamarin profiler on solution.. it's always say your runtime device is too old, deploy your app again with newer version.

Here is log info.......... XamarinProfiler.Core.Profiler Information: 0 : [2023-09-06 15:15:33.4542] ########################################## XamarinProfiler.Core.Profiler Information: 0 : [2023-09-06 15:15:33.4552] # Xamarin Profiler version - …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,144 questions
asked 2023-09-06T10:00:30.8266667+00:00
Pawan Gupta 0 Reputation points
edited a comment 2023-09-07T09:20:10.8766667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 22,331 Reputation points Microsoft Vendor
0 answers

Xamarin CarPlay InformationTemplate Custom Back Button Handle Problem

Our xamarin forms project supported CarPlay and has a information template. I want to use custom back button on information template but handle function not working. Back button create function codes: private CPBarButton GetBackButton() …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,144 questions
asked 2023-09-06T11:00:53.32+00:00
Mehmet Sandıklı 0 Reputation points
commented 2023-09-07T05:23:22.55+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 20,966 Reputation points Microsoft Vendor
2 answers

Xamarin Forms Push notifications on Chinese ROMS

I have a Xamarin Forms app with push notifications serviced through Azure Notification Hubs and FCM. All working fine on all states - foreground and background. Most devices work OK with the app killed as well - however, on Oppo and TCL devices the…

Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
199 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,144 questions
asked 2023-09-05T16:34:02.3533333+00:00
Raymond Dillon 0 Reputation points
answered 2023-09-07T03:03:55.03+00:00
ajkuma 17,436 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

Java.Lang.Object in Custom ItemViewAdapter for Android lost event handlers when item count is a little big

I created two Adapter classes inheriting from BaseAdapter, which attempt to eliminate some unnecessary coupling: SharedItemViewAdapter<TData>: GetView method uses classic form to share views across multiple items; …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,144 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,765 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
8,944 questions
asked 2023-09-01T09:40:53.4866667+00:00
xi guo 40 Reputation points
accepted 2023-09-07T01:30:50.5266667+00:00
xi guo 40 Reputation points
0 answers

macos workload on Visual Studio 2022 showing as "Out of Support"

I am working to create a Mac App in Visual Studio for Mac using the "macos" workload, which is the successor to the Xamarin platform (as I understand). However, when I build the application, I receive a warning indicating that this workload is…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,144 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,017 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,765 questions
asked 2023-07-23T21:29:12.1866667+00:00
Kirk Jacobson 5 Reputation points
commented 2023-09-07T00:20:33.99+00:00
Jess Perkins 0 Reputation points
0 answers

Xamarin carplay supported ios app crashes when starting

Our app crashes as soon as it is launched after carplay integration. if i install directly (from ipa) it works. But if I install from testflight it crashes. If you remove …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,144 questions
asked 2023-09-06T10:59:45.6+00:00
Mehmet Sandıklı 0 Reputation points
commented 2023-09-06T13:29:21.9966667+00:00
Mehmet Sandıklı 0 Reputation points
1 answer One of the answers was accepted by the question author.

Categorizing fruits and vegetables.

I just need some basic guidance then I can work it out. I am creating an app that allows the user to select fruits and vegetables then it list's the fruit and vegetable quantities on a List content page. I can get the fruit and vegetable to display on…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,144 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,017 questions
asked 2023-09-02T12:51:56.2066667+00:00
Matthew Zoljan 60 Reputation points
accepted 2023-09-04T10:39:29.6033333+00:00
Matthew Zoljan 60 Reputation points
0 answers

iOS app suddenly kicking out can not encode offset

Hi, I have a VS 2019 project for iOS with Xamarin. It was working fine in June, I have my SKD version set for 10.2 and supported architectures set to ARMv7 + ARM64. Today I loaded up my project as I wanted to check something but when I go to build I now…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,144 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
8,944 questions
asked 2023-08-31T23:31:24.8266667+00:00
Phunction 196 Reputation points
commented 2023-09-04T08:28:23.6333333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 22,331 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to create subdirectories ?

For Xamarin.Android application, how can I configure to create subdirectories, or even subdirectories, in these directories(such as Resources\layout, Resources\values, Resources\drawable, and so on) so that I can sort out programs that have multiple…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,144 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,765 questions
asked 2023-09-01T19:05:33.7633333+00:00
xi guo 40 Reputation points
accepted 2023-09-04T08:20:17.1266667+00:00
xi guo 40 Reputation points
0 answers

FilePicker.PickAsync(PickOptions.Default) does always fail, how to fix it?

using Xamarin.Essentials; already: <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> When I try this: …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,144 questions
asked 2023-08-23T19:56:00.8766667+00:00
xi guo 40 Reputation points
commented 2023-09-04T00:52:29.4766667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 20,966 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

How to prevent to navigate to the previous page

Hello In android app xamarin In my app i have 2 activities. Is there a possibility to prevent the user to navigate to the previous activity (the last page). when i click the > on the bottom toolbar i navigate to the last page so i would like…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,144 questions
asked 2023-08-30T19:34:37.52+00:00
Shay Wilner 1,686 Reputation points
answered 2023-09-04T00:13:12.0233333+00:00
Graham McKechnie 241 Reputation points
5 answers

Apple Developer Account: Individual - error 'There was an error while trying to log in: Provide a properly configured and signed bearer token, and make sure that it has not expired learn more about generating tokens for API requests'

I have an issue when trying to sign in with my apple developer account on visual studio 2022 (v17.4.1). Firstly, I when trying to sign in as an 'individual account' I get this error ‘there was an error while loading your certificates: The Apple Developer…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,144 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,765 questions
asked 2022-11-22T08:48:18.217+00:00
Brian Kekana 16 Reputation points
answered 2023-08-31T20:44:21.58+00:00
Brett Whittaker 0 Reputation points
0 answers

Xamarin android 13, Popup permission notification and Popup

Hi developer, Can i call this function for check permission and request permission popup in other file cs ? At the moment only can call this function in mainactivity.cs? if ((int)Build.VERSION.SdkInt < 33) { return; …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,144 questions
asked 2023-08-30T04:38:50.9366667+00:00
dimas kursiana 0 Reputation points
edited the question 2023-08-31T16:12:12.4333333+00:00
Rob Caplan - MSFT 5,212 Reputation points Microsoft Employee
0 answers

Label isn't Centered Correctly in Grids Bottom Row

I'm using a grid to display a user's character progression but for some reason, my label on the bottom Row isn't being centered correctly. Regardless of the Font Size, "lblLevel" is being centered out of the grid rows bounds. On iOS, the…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,144 questions
asked 2023-08-08T11:47:25.23+00:00
Bryson 0 Reputation points
edited the question 2023-08-31T03:07:45.86+00:00
Jack J Jun 23,946 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Xamarin forms to MAUI migration issues

I have tried to migrate my Xamarin Forms app to MAUI using .NET 7 using the upgrade assistant extension in visual studio. First I migrated the solution, then android and finally the iOS projects. (Is this workflow correct?) After that I have deleted the…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,144 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,834 questions
asked 2023-08-16T15:14:22.05+00:00
Sakshi Poojary 20 Reputation points
accepted 2023-08-30T15:28:09.5+00:00
Sakshi Poojary 20 Reputation points
1 answer

FilePicker.PickAsync Xamarin essentials API not working for Android 13

FilePicker working fine for below android 13, but getting permission exception for android 13. Xamarin.Essentials.PermissionException: StorageRead permission was not granted: Denied at Xamarin.Essentials.Permissions.EnsureGrantedAsync[TPermission] ()…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,144 questions
asked 2023-08-23T08:48:23.0866667+00:00
rmpQue 6 Reputation points
commented 2023-08-30T07:11:56.73+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 22,331 Reputation points Microsoft Vendor