Questions tagged [xamarin]
32 questions
5
votes
2 answers
Should I remove "everything" from my controller in MVVM?
I'm working with Xamarin and we are following the MVVM design pattern. For those who don't know what Xamarin is, it's a technology that allows us to build iOS and Android apps with shared code. Basically, your solution has 3 projects, one "Core" and…

Gil Sand
- 2,173
- 3
- 18
- 22
4
votes
1 answer
How to authorize and store user login from a xamarin frontend to a asp.net core api
So I suppose this question isn't as much as a 'How to' but a 'which way' kind of question.
So I have a .net core api backend that makes calls to a dB
I also have a xamarin forms project that connects to the API and gets and posts all info.
However…

dros
- 167
- 3
4
votes
1 answer
Architecture to lock account to mobile device
I'm currently creating a mobile app and have the following issue.
I am required to only allow the user to login from a device that is registered to the users account. A user can have up to X number of devices registered at any one time.
So when the…

Ankeet Dhanji
- 53
- 4
4
votes
2 answers
Is blocking a UI thread sometimes a good idea?
Say, I created a custom button which includes some animation which is played when the button is clicked. The animation takes 500ms. During that time (until the animation is over), the button should not receive any inputs, and so should other items…

nicks
- 533
- 2
- 6
- 14
3
votes
3 answers
How to decouple code behind with business logic?
I'm having a hard time to decouple two classes.
I have my code behind (will call it "class A") that I use to tweak the interface (defined in xaml).
Next I have a class B that is only logic. But while the logic is executing I have to update the…

Doctor
- 131
- 4
2
votes
1 answer
Secure way of storing client secrets in Xamarin / Android mobile apps
What would be a secure way of storing client secrets used for authentication (webservices) in Xamarin/Android apps ?
Secure Storage, which interacts with Android Keystore, seems very useful for storing sensitive data acquired at runtime, such as…

asyncful
- 29
- 3
2
votes
1 answer
Let Xamarin clients listen when server send an API
My situation
I will make a Xamarin application for Android that can access an ASP.NET MVC webserver with API's. The problem is when I'll send an API to the server, all the connected clients must receive an API with the changes that happens by client…

H. Pauwelyn
- 229
- 1
- 16
2
votes
3 answers
Could applications build in Xamarin possibly be banned from App Store by Apple?
Consider having restricted man resources and thinking about using Xamarin Studio for building cross platform application. Will you be afraid of Apple trying to ban all applications NOT developed by xCode? I mean in future. It is obviously not banned…

Lorem Ipsum
- 39
- 1
- 8
1
vote
4 answers
Raising concerns on the codebase as a new hire
I'm new in the team (< 3 weeks) but I believe I am experience enough as a Xamarin dev to know what I'm doing and also experience enough on using Prism library to give some criticism on how things should be done on an existing code base.
On our next…

mr5
- 121
- 4
1
vote
1 answer
How to properly handle deployment configuration for Xamarin Forms app
We are currently working on a Xamarin Forms (.NET Core) application. We use Microsofts DevOps for the code repo, building and deployment.
Since we want to test newly developed features in a safe testing environment, we need to configure the app…

Manuel Merzinger
- 21
- 3
1
vote
1 answer
What is the proper way to change the View from a ViewModel when using the MVVM pattern?
I'm trying to follow the Model–View–ViewModel pattern in a Xamarin application and am wondering how the View should be able to change when a given ViewModel is finished. Below I have listed the ideas I have come up with doing what I need.
Creating…

Aaron T
- 121
- 4
1
vote
1 answer
Deploying Multiple Versions in One App Package
This is a question about Android, and iOS apps. The technology is Xamarin (C#) but this is not really important. The app will be deployed to the stores. The client app must be compatible with the back end up. As we know, a user can reject an…

Christian Findlay
- 279
- 1
- 10
1
vote
0 answers
Xamarin communication between devices, not using the internet
How would you go about if you would like to create something like:
You have let say 3 devices (can all be iOS or Android, a mix is not necessary)
One of the devices would act as a master and the other two would connect to it and receive messages. …

Jester
- 119
- 1
1
vote
1 answer
Best way to manage services and exceptions
I have a mobile app who consumes a api service. I have a class to manage all the operations (get, post, put) who throws exceptions if the result is not 200.
The app was originaly designed to be mostly offline so my services where like this:
…

Mulflar
- 111
- 4
1
vote
1 answer
Most convenient way to implement the models used by the Service Access layer of a Xamarin application
I am new to the Xamarin technology, and I am working on an Asp.NET Core Web application which basically delivers micro-services which will be consumed by a Xamarin.Forms application.
So my Web API will offer quite a few operations, and each of them…

Toto
- 143
- 3