I'm working on a mobile app with Xamarin and I need to use a librairy for webservices which works on Android, iOS and Windows phone !
I checked a long time on google, and I think the best one is RestSharp Portable 3.0.1.
First I launch Visual studio and I click on file - new - project - visual C# - Mobile APPS and then BLACK APP (Xamarin.forms Portable).
After this, I got a full project with :
1 - My project (HelloWorld here for example)
2 - My project.android
3 - My project.iOS
4 - My project.WinPhone
I click on the 1 and then I add the RestSharp Portable references via Nuget and it's okay.
Now, i'm trying to use it but I cannot find anything on google about it, I don't know if it's because it's a new version but I have nothing on it.
So the question is : WHat is the best using WebServices into Xamarin for a cross app ?
Thanks guys !
I use RestSharp with no issues.
Here is the component link.
And here is their website.
It doesn't say that the component supports windows phone but I'm sure you can port it.
Related
I am new to Xamarin and I have successfully created an application in Xamarin for iOS. What I need is a way for this application to be viewed in the browser as a PWA. I figured to learn xamarin because I thought that this was a useful resource.
I have looked in to ooui but I can't successfully attach my Xamarin project to ooui.
At the end of this project I will have a running PWA coded in c# for iOS in the browser.
A link to the Xamarin can be found here:
https://github.com/SunRhythms/iosslidingpuzzle/tree/master/iOSSlidingPuzzle-3
Welcome to Xamarin! Your github repo is set to Private in it's setting.
Gathering from your other question as well, it's clear that you are using Native Xamarin.iOS and not Xamarin.Forms. (They have several differences if you check this)
Presently, there is no way of porting your Xamarin.iOS project into a PWA that has been made public. If you do convert your project manually into a Xamarin.Forms project, you could potentially use Ooui to convert Xamarin Forms into high performance WebAssembly code.
It seems like you have a sliding puzzle game, so it would be cool if you do end up doing it! Share it with us and the rest of the Xamarin community
I am working on a Xamarin Forms project, and I am trying to implement some geofencing. It is working well, but when the app is closed, it is not doing anything.
I am using this NuGet (https://github.com/CrossGeeks/GeofencePlugin) and different Android OS', which are Android 7, 8 and 9.
I implemented everything as said on the GitHub page, and the Android specifics in the Android project. In the console it appears that the service is started.
I did some documentation about services but from what I understand from the GitHub page you don't need to implement anything else, and the restrictions begin with Android 8, but on Android 7 it still doesn't work.
so I'm creating an app with Xamarin Forms Portable and I want to use a Web service that I hosted in Azure. As far as I know, I can't add a reference by right clicking on the Reference tab in the PCL project... So I wonder if anyone could provide me with a fairly simple and straight forward solution?
Need to change to Pcl profile 78.
Ok to do so... Right Click , properties on the PCL Project.
Uncheck Windows Phone 8.
Check Windows Phone Silverlight.
You are now using Profile78! Allowing you to add Silverlight WCF client :).
Wish this was documented better.
You can see what profile you are currently using by opening the proj file in notepad.
Happy Xamarining!
References can be added if your project targets does not connect windows. Right click the PCL project and change the targets, remove windows.
you can use application => "Service Reference Generator For .net Standard & Xamarin.Forms" from : https://files.fm/u/mduffseg
first read help in application
Can a Android Hybrid App with some plugins written in Java and others imported from Cordova, be made windows phone complaint using Xamarin ?
Is there any such feature in VS 2015 from which conversion of android app to windows be made possible without much rework. Please help.
No. Xamarin will not allow you to automatically convert an app from one platform to another.
Microsoft has announced Project Astoria as part of Windows 10. This will enable Android apps to run as Windows Universal apps.
Can a Android Hybrid App with some plugins written in Java and others
imported from Cordova, be made windows phone complaint using Xamarin ?
No you cannot.
There are two ways to port Java code to C#.
The first way is to port the code manually.
The second porting methodology is to try and automate the process by using a code converter.
I've been having this problem for a few days, and can't find any solution.
I made my app with Xamarin Studio. I am trying to upload an update for my it to iTunes Connect through Xcode. But when trying to validate the app I get the following error: "This bundle is invalid. New apps and app updates submitted to the App Store must be built with public." Dissecting this error it makes it sound like it thinks I'm using a beta SDK, which I'm not (full system specs below). Even weirder is that if I go through Xamarin Studio's Archive validation it tells me everything is fine. But when I go through Application Loader it tells me the following:
"ERROR ITMS-9000: This bundle is invalid. New apps and app updates submitted to the App Store must be built with public (GM) versions of Xcode 5.1.1 or higher and iOS 7 SDK. Do not submit apps built with beta software." Obviously this is the same error as before, just a little more detailed. But the system specs it outlines, are exactly the same as I am using.
Hopefully someone out there can lend me a hand! :D
System Specs:
Mac OSX 10.9.3
Xcode 5.1.1 (Downloaded from the Mac App Store)
iOS 7 SDK, building for iOS 7.1
Xamarin Studio 5.0
Application Loader 2.9.1
Thanks in advance!
Open your project in Xamarin Studio, then double click on Info.plist. Click on Use Asset Catalogs for both sections: Universal Icons & Universal Launch Images. It should create two new folders:
Resources/Images.xassets/AppIcons.appiconset
Resources/Images.xassets/LanuchImage.lanuchimage
Go to AppIcons.appiconset folder and make sure that you have the following file names:
AppIcon57x57.png
AppIcon57x57#2x.png
AppIcon72x72#2x~.png
AppIcon72x72~ipad.png
Rename your icons if you don't have them and double click on Content.json to assign them.