xamarin.ios

The application cannot access the iOS keychain in Xamarin.Forms but works in Android

自闭症网瘾萝莉.ら 提交于 2021-01-28 21:56:59
问题 Hello I am learning using MSAL but met a wired issue. I totally followed the tutorial, and I am using the sample code. But I still got this exception building the client in App.xaml.cs : microsoft.identity.client.msalclientexception: the application cannot access the ios keychain for the application publisher (the team id is null). this is needed to enable single sign on between applications of the same publisher. this is an ios configuration issue. see https://aka.ms/msal-net-enable-keychain

Xamarin Forms: Push notification is not receiving to ios device

◇◆丶佛笑我妖孽 提交于 2021-01-28 12:09:24
问题 I have done the following things: Created a project in FCM console and added ios project into it. Downloaded the GoogleService-Info.plist and added it to the xamarin forms ios project directory and set the build action as Bundlesource . On Info.plist enabled remote notification background mode. Added FirebaseAppDelegateProxyEnabled in the app’s Info.plist file and set it to No. Created a provisioning profile and distribution certificate and installed it into the keychain access. Also, mapped

NSLayoutManager returns incorrect character index when tapping on LTR text in RTL attributed text

僤鯓⒐⒋嵵緔 提交于 2021-01-28 08:51:58
问题 I wrote code to detect if the user taps within a specific range in UILabel . It seems to be working in most cases, but I have noticed that tapping the last line of an attributed text creates inconsistent results. public static bool DidTapRange(this UITapGestureRecognizer recognizer, UILabel label, NSRange range) { using (var ts = new NSTextStorage()) { var lm = new NSLayoutManager(); var tc = new NSTextContainer(new CGSize(label.Frame.Width, double.MaxValue)); lm.AddTextContainer(tc); ts

timeout with IOS app from Visual Studio (xamarin)

老子叫甜甜 提交于 2021-01-28 08:43:51
问题 I'm on the latest stable version of xamarin on both pc and mac. I'm trying to build the hello world app from VS but I get trouble. In fact, Visual Studio launch the simulator on the mac, but nothing is runing on the simulator (black screen). I finally get an error-messgae dur to the timeout. Thanks to any idea to resolve that problem :-) 回答1: I came back to explain the resolution of my problem. I followed the steps mentionned here : enter link description here but I really think that the main

Xamarin.iOS linker and reflection issue

独自空忆成欢 提交于 2021-01-28 05:14:11
问题 In my Xamarin.iOS project I need to reduce the assembly size (Apple's requirement for AppStore applications), and I need to turn on linker, setting the linker behavior either to "Link Framework SDKs only" or "Link All". When I've selected "Link Framework SDKs only" in Linker behavior I get the compilation error upon building the project: Can't resolve the reference 'System.Void System.Data.SqlClient.SqlCommandBuilder::DeriveParameters(System.Data.SqlClient.SqlCommand)', referenced from the

Xamarin forms Add button in TabbedPage

会有一股神秘感。 提交于 2021-01-27 20:34:17
问题 I have a question. I created the following TabbedPage: <?xml version="1.0" encoding="utf-8" ?> <TabbedPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:d="http://xamarin.com/schemas/2014/forms/design" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:views="clr-namespace:MyApp.Views" mc:Ignorable="d" x:Class="MyApp.Views.MainPage" xmlns:android="clr-namespace:Xamarin.Forms.PlatformConfiguration

In Xamarin I need to set marker in the center of the map and get the position

最后都变了- 提交于 2021-01-27 19:06:11
问题 I'm trying in Xamarin to add a marker in the center of the map that marker will be fixe and can not be dragged, the map below that marker can be dragged normally. I need to get the position of the map that was chosen by the user, I searched a lot for the internet and found nothing that could help me. This feature is widely used in the Uber app. 回答1: On iOS , you can use the RegionChanged on a MKMapViewDelegate subclass to get updates as the user scrolls the map. Use the MKMapView.Region to

Xamarin.forms iOS simulator not launching

孤街醉人 提交于 2021-01-27 07:46:22
问题 I have connected my windows laptop to Macbook pro late 2011 for developing xamarin.forms ios applications. My visual studio version on Widows machine is 16.7.2 with xamarin.ios version 13.20.2.2 . My xamarin.ios version on Macbook is 13.14.1.39 and Xcode version is 11.3.1(11C504) . The problem I am facing is I cannot run ios simulator on both windows and mac. I can manually open simulator on Mac. But when we run application against simulator it will build successful , but no simulator shows

Xamarin.forms iOS simulator not launching

流过昼夜 提交于 2021-01-27 07:46:09
问题 I have connected my windows laptop to Macbook pro late 2011 for developing xamarin.forms ios applications. My visual studio version on Widows machine is 16.7.2 with xamarin.ios version 13.20.2.2 . My xamarin.ios version on Macbook is 13.14.1.39 and Xcode version is 11.3.1(11C504) . The problem I am facing is I cannot run ios simulator on both windows and mac. I can manually open simulator on Mac. But when we run application against simulator it will build successful , but no simulator shows

SIGABRT error after last Xamarin.iOS update

生来就可爱ヽ(ⅴ<●) 提交于 2021-01-27 07:16:19
问题 Just updated to the lastest version of Xamarin studio and Xamarin.iOS. Now I am getting this error: Got a SIGABRT while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. Well, its not even an error actually. The simulator just crashes and and no workable error shows up. All was fine 10 mins ago... Im on Mac OSX. Any ideas? Thanks! EDIT 2015-05-08 08:46:58.951 ReflectMobileiOS[1761:93636] Unhandled managed