Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all 91519 articles
Browse latest View live

Latitude and Longitude from Xamarin using IOS (Simulator or real device)

$
0
0

Hello There Guys,

Has anyone ever gotten longitude and latitude from an address in the iOS app successfully?

When i tried i kept getting this error

{Foundation.NSErrorException: Error Domain=kCLErrorDomain Code=8 "(null)"
at Xamarin.Essentials.Geocoding+d__4.MoveNext () [0x00075]

Funny it works in the android project.

I have used Xamarin Essentials and Xam.plugin.Geolocator, same error.

When i searched online it was said Apple does not recognise the address as a . valid one. If true, then whats the advisable solution since it works perfectly on android?

WOuld deeply appreciate your help


埃默里大学文凭〈Emory毕业证成绩单〉Q微信9105133留信认证/买美国埃默里大学(精仿)毕业证成绩单,(真实)学历认证,使馆认证(回国人员证明)Emory University

$
0
0

埃默里大学文凭〈Emory毕业证成绩单〉Q微信9105133留信认证/买美国埃默里大学(精仿)毕业证成绩单,(真实)学历认证,使馆认证(回国人员证明)Emory University

圣母大学文凭〈ND毕业证成绩单〉Q微信9105133留信认证/买美国圣母大学(精仿)毕业证成绩单,(真实)学历认证,使馆认证(回国人员证明)University of Notre Dame

$
0
0

圣母大学文凭〈ND毕业证成绩单〉Q微信9105133留信认证/买美国圣母大学(精仿)毕业证成绩单,(真实)学历认证,使馆认证(回国人员证明)University of Notre Dame

Native linking failed error in xamarin for GoogleSign

$
0
0

I am following this tutorial for GoogleSign in my project. https://www.pujolsluis.com/google-client-plugin-for-xamarin/ .Works fine in android. But getting Native linking failed errors while rebuild in ios.

Native linking error: clang: error: no such file or directory: '/Users/cybasetechnologies/Library/Caches/Xamarin/mtbs/builds/login2.iOS/0f92dcc98e9717a0d2643ed70077af70/obj/iPhone/Debug/mtouch-cache/FirebaseInstanceID'
Native linking error: clang: error: no such file or directory: '/Users/cybasetechnologies/Library/Caches/Xamarin/mtbs/builds/login2.iOS/0f92dcc98e9717a0d2643ed70077af70/obj/iPhone/Debug/mtouch-cache/FirebaseNanoPB'
Native linking failed. Please review the build log.
Native linking error: clang: error: no such file or directory: '/Users/cybasetechnologies/Library/Caches/Xamarin/mtbs/builds/login2.iOS/0f92dcc98e9717a0d2643ed70077af70/obj/iPhone/Debug/mtouch-cache/FirebaseCoreDiagnostics'
Native linking error: clang: error: no such file or directory: '/Users/cybasetechnologies/Library/Caches/Xamarin/mtbs/builds/login2.iOS/0f92dcc98e9717a0d2643ed70077af70/obj/iPhone/Debug/mtouch-cache/FirebaseAnalytics'
Native linking error: clang: error: no such file or directory: '/Users/cybasetechnologies/Library/Caches/Xamarin/mtbs/builds/login2.iOS/0f92dcc98e9717a0d2643ed70077af70/obj/iPhone/Debug/mtouch-cache/GoogleSignIn'
Native linking error: clang: error: no such file or directory: '/Users/cybasetechnologies/Library/Caches/Xamarin/mtbs/builds/login2.iOS/0f92dcc98e9717a0d2643ed70077af70/obj/iPhone/Debug/mtouch-cache/FirebaseCore'

Deleted bin and obj folders in both mac and visualstudio; clean and rebuid; still error persists.Please help..

德克萨斯大学奥斯汀分校文凭〈UT毕业证成绩单〉Q微信9105133留信认证/买美国德克萨斯大学奥斯汀分校(精仿)毕业证成绩单,(真实)学历认证,使馆认证(回国人员证明)The University o

$
0
0

德克萨斯大学奥斯汀分校文凭〈UT毕业证成绩单〉Q微信9105133留信认证/买美国德克萨斯大学奥斯汀分校(精仿)毕业证成绩单,(真实)学历认证,使馆认证(回国人员证明)The University of Texas at Austin

德克萨斯州大学达拉斯分校文凭〈UTD毕业证成绩单〉Q微信9105133留信认证/买美国德克萨斯州大学达拉斯分校(精仿)毕业证成绩单,(真实)学历认证,使馆认证(回国人员证明)University of

$
0
0

德克萨斯州大学达拉斯分校文凭〈UTD毕业证成绩单〉Q微信9105133留信认证/买美国德克萨斯州大学达拉斯分校(精仿)毕业证成绩单,(真实)学历认证,使馆认证(回国人员证明)University of Texas at Dallas

科罗拉多大学博尔得分校文凭〈CU Boulder毕业证成绩单〉Q微信9105133留信认证/买美国科罗拉多大学博尔得分校(精仿)毕业证成绩单,(真实)学历认证,使馆认证(回国人员证明)Universi

$
0
0

科罗拉多大学博尔得分校文凭〈CU Boulder毕业证成绩单〉Q微信9105133留信认证/买美国科罗拉多大学博尔得分校(精仿)毕业证成绩单,(真实)学历认证,使馆认证(回国人员证明)University of Colorado at Boulder

迈阿密大学牛津分校文凭〈MU毕业证成绩单〉Q微信9105133留信认证/买美国迈阿密大学牛津分校(精仿)毕业证成绩单,(真实)学历认证,使馆认证(回国人员证明)Miami University

$
0
0

迈阿密大学牛津分校文凭〈MU毕业证成绩单〉Q微信9105133留信认证/买美国迈阿密大学牛津分校(精仿)毕业证成绩单,(真实)学历认证,使馆认证(回国人员证明)Miami University


印地安那大学伯明顿分校文凭〈IUB毕业证成绩单〉Q微信9105133留信认证/买美国印地安那大学伯明顿分校(精仿)毕业证成绩单,(真实)学历认证,使馆认证(回国人员证明)Indiana Univers

$
0
0

印地安那大学伯明顿分校文凭〈IUB毕业证成绩单〉Q微信9105133留信认证/买美国印地安那大学伯明顿分校(精仿)毕业证成绩单,(真实)学历认证,使馆认证(回国人员证明)Indiana University Bloomington

how can stretch background content image?

$
0
0

How can i set the background no-repeat but stretch dinamically to all page?

Show two pages side by side or as seperate pages

$
0
0

Hello,

I have two pages (a master and a detail page) that I want to show in my Xamarin.Forms app. The layout can be compared the UWP Mail app: The master page contains the list of all messages and the detail page shows one e-mail message. When the width of the app is small (e.g. phone), only one page is shown at a given time. When the users wants to read the email message (= visit the details page), the list of messages disappears and only the email message is shown (= navigates from master page to detail page). When the width of the app is sufficiently large (e.g. tablet in landscape mode), the list of email messages is shown on the left and the selected message is displayed on the right (= master and detail page are shown side by side).

How can I recreate such a behavior for my app? My master page is a list view from which I can navigate to the detail page, but I also want to show these two pages side by side when the app is wide enough.

My details "page" does not have to be a XAML page, I could also use e.g. ContentView if this is easier. However, thus far I was unable to create the layout I described.

Regards,
Philipp

Xamarin Forms ADMob (Firebase.ADS) Not Show

$
0
0

Hello, I have a problem.
I am using the Firebase.ADS plugin to add ads to my application however I am getting this error message and the advertisement is not displayed!
I'm in a .netstandard2.0 project

12-29 22:05:30.118 I/Ads (24010): Ad failed to load : 3

I need Help Please!

iOS Native Linking Error

$
0
0

When I attempt to run my xamarin forms app using the iOS simulator I'm getting the following errors around linking. I'm using a new dll that I created. The simulator is paired with a mac mini that is running macOS High Sierra Version 10.13.3, Xcode 9.1, and Visual Studio for Mac Enterprise 7.4. I was curious if anybody had any ideas about what was causing these errors?

Severity Code Description Project File Line Suppression State
Error Native linking error: framework not found /Users/dwighthyde/Library/Caches/Xamarin/mtbs/builds/UCH.MHC.Mobile.iOS/febaa3b698a046262026a17f2d96a20b/obj/iPhoneSimulator/Debug/mtouch-cache/x86_64/registrar.o UCH.MHC.Mobile.iOS

Severity Code Description Project File Line Suppression State
Error Native linking failed. Please review the build log. UCH.MHC.Mobile.iOS

Severity Code Description Project File Line Suppression State
Error Native linking failed. Please review the build log and the user flags provided to gcc: -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/dwighthyde/Library/Caches/Xamarin/mtbs/builds/UCH.MHC.Mobile.iOS/febaa3b698a046262026a17f2d96a20b/obj/iPhoneSimulator/Debug/Entitlements.xcent UCH.MHC.Mobile.iOS

Deploying HttpClient - NameResolutionFailure - only on iOS device

$
0
0

Hi All,

I'm having an issue with httpClient, but only on my iOS device (I've not checked Android but I'm not targeting it), it works well in the emulator.

When my app loads the ViewModels do a API call to try and get data from my server and I almost immediately get a System.Net.WebException: Error: NameResolutionFailure crash. I don't get this in the iOS emulator for the same API call.

I tried calling https://jsonplaceholder.typicode.com/posts which I know works and rules out anything idiosyncratic bugs in my code but it still fails.

Is there anything special I need to do enable internet access on an iOS device? Could I have set up something wrong in my provisioning profile in the Apple Account?

Thanks in advance

Complie Error

$
0
0

Any one help, when tried to compile system throw below error. three times uninstall VS and Xamarin. but no use.

packaging of 'C:\Users\XXXXXXX\AppData\Local\Temp\nykza20f.fpe\resources.apk.bk' failed App1.Android C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets 1703
ERROR: unable to open 'obj\Debug\81\lp\5\jl\bin\classes.jar' as a zip file: -40 "classes.jar' as a zip file: -40". App1.Android C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets 1703
unable to process jar files while packaging 'C:\Users\XXXXXXX\AppData\Local\Temp\nykza20f.fpe\resources.apk.bk' App1.Android C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets 1703


SVG image is not displaying in android in xamarin.forms

$
0
0

I am trying ti display the SVG image in my xamarin.form application, there are no issues to display the SVG image in iOS but not able to display the same image in the android application.

here is my code to display the svg image
<ContentView.Resources> <ResourceDictionary> <ffimageloadingsvg:SvgImageSourceConverter x:Key="SvgImageSourceConverter"></ffimageloadingsvg:SvgImageSourceConverter> </ResourceDictionary> </ContentView.Resources> <ContentView.Content> <ffimageloadingsvg:SvgCachedImage Source="{Binding SvgFileName, Converter={StaticResource SvgImageSourceConverter}}" Grid.Column="0" WidthRequest="200" HeightRequest="600" ReplaceStringMap="{Binding BodyMapreplceStrings}" /> </ContentView.Content>

And from View Model I am binding the image as following

 public string SvgFileName
        {
            get { return _svgFileName; }
            set
            {
                _svgFileName = value;
                OnPropertyChanged();
            }
        }

and

SvgFileName="Flower.svg";

and given svg image in Resources for iOS and in Resources ->drawable

in MainActivity added following lines
CachedImageRenderer.Init(true);
var ignore = typeof(SvgCachedImage);

Is there anything I am missing?

How to detect text and search a location over mapview?

$
0
0

I added mapview using xamarin.forms.maps package. I wanted to add a searchbar field to search address and drop pin using search box.

How to add a SearchBar programmatically a search a location?

I tried the following:

var searchField = new SearchBar
{
Placeholder = "Enter search term"
};
searchField.SearchCommand = new Command(() => { if (searchField != null) { string.Format("Result: {0} is what you asked for.", searchField.Text); }
** // I don't get the text here**

Content = new StackLayout
{
Spacing = 0,
Children = {
searchField,
map,
buttons
}
};

Xamarin form : Unable to recieve IOS firebase token

$
0
0

i have developed a project for android and ios. FCM notificaiton works fine for android i can get token as well, but i am not able to get ios token from fcm and getting these errors

2018-12-29 16:12:31.298436+0500 Consultant.iOS[26902:871906] [Firebase/InstanceID][I-IID009001] Error removing keypair status: -34018
2018-12-29 16:12:31.299426+0500 Consultant.iOS[26902:871906] [Firebase/InstanceID][I-IID010007] Unable to remove RSA keypair
2018-12-29 16:12:32.865414+0500 Consultant.iOS[26902:871853] [Firebase/InstanceID][I-IID010003] Unable to generate keypair.
2018-12-29 16:12:32.865788+0500 Consultant.iOS[26902:871853] [Firebase/InstanceID][I-IID010009] Keypair could not be loaded from Keychain. Error: Error Domain=com.firebase.iid Code=-34018 "(null)"
2018-12-29 16:12:32.866843+0500 Consultant.iOS[26902:871853] [Firebase/Analytics][I-ACS020001] Failed to get InstanceID: Error Domain=com.firebase.iid Code=-34018 "(null)"
2018-12-29 16:12:32.887691+0500 Consultant.iOS[26902:871906] [Firebase/InstanceID][I-IID009001] Error removing keypair status: -34018
2018-12-29 16:12:32.887954+0500 Consultant.iOS[26902:871906] [Firebase/InstanceID][I-IID010007] Unable to remove RSA keypair
2018-12-29 16:12:33.061443+0500 Consultant.iOS[26902:871906] [Firebase/InstanceID][I-IID010003] Unable to generate keypair.
2018-12-29 16:12:33.062002+0500 Consultant.iOS[26902:871906] [Firebase/InstanceID][I-IID010009] Keypair could not be loaded from Keychain. Error: Error Domain=com.firebase.iid Code=-34018 "(null)"
2018-12-29 16:12:33.062421+0500 Consultant.iOS[26902:871906] [Firebase/Analytics][I-ACS020001] Failed to get InstanceID: Error Domain=com.firebase.iid Code=-34018 "(null)"
2018-12-29 16:12:33.078473+0500 Consultant.iOS[26902:871853] [Firebase/InstanceID][I-IID009001] Error removing keypair status: -34018
2018-12-29 16:12:33.078835+0500 Consultant.iOS[26902:871853] [Firebase/InstanceID][I-IID010007] Unable to remove RSA keypair
2018-12-29 16:12:33.600527+0500 Consultant.iOS[26902:871850] [Firebase/InstanceID][I-IID010003] Unable to generate keypair.
2018-12-29 16:12:33.600801+0500 Consultant.iOS[26902:871850] [Firebase/InstanceID][I-IID010009] Keypair could not be loaded from Keychain. Error: Error Domain=com.firebase.iid Code=-34018 "(null)"
2018-12-29 16:12:33.601524+0500 Consultant.iOS[26902:871850] [Firebase/Analytics][I-ACS020001] Failed to get InstanceID: Error Domain=com.firebase.iid Code=-34018 "(null)"
Thread finished: <Thread Pool> #78

Showing white blank page before navigating from Login page to MasterDetailpage in Xamarin Form

$
0
0

Hi, I'm working on app in Xamarin form where I need to login first in login page , then if succeed will it navigate to master detail page. I able to achieved it but when navigating from Login page to masterdetail page, it show <1second white blank page in between the navigation. Is that any way to make it navigate more faster without showing the white page? I'm using the masterdetail (https://docs.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/navigation/master-detail-page) page template provide by the Xamarin form.
Below show how I navigate between the pages.

      MainPage = new LoginPage();
      Application.Current.MainPage = new MasterDetailPage();

How can i download the pdf file with out opening the browser (With out using Device.OpenUri(pdfUr)

$
0
0

i need it like abackgroud proccess in my context it open the browser directly and ask me to download it but i need
to download it without asking the user . how can i remove the redirect proccess from the app to the browser and complete the process in the app.

thank you in advance.

Viewing all 91519 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>