Push Notifications Lifecycle

Push notifications are a common feature in mobile apps and if you read my previous post or others you will easily understand how to receive them. Most walk-throughs stop at that point but what do you do after you receive them? As you will find out there are a few scenario’s in different platforms you need […]

Read More >

Misuses Of MessagingCenter

MessagingCenter is a global event messaging system designed to allow two separate entities communicate without knowing anything about each other, besides a simple messaging contract. This architectural style of system works well for larger systems such as Amazon who use a similar event-sourced approach of micro services to implement a recommendation system, payment system, shipping system […]

Read More >

Creating A Splash Screen In Xamarin Forms

A splash screen is an image or page that shows when you first load your app, while the application is initializing. The splash screen will stay visible until the first page of the app is ready to display. Xamarin Forms does not have any functionality to add a splash screen, you must do this per […]

Read More >

Static Initialization

Constructor injection is a great way to keep all class dependencies easily visible in a constructor parameter list and makes unit testing easier. There are times when this isn’t possible such as another class initializes your class and you don’t have control of its construction. This presents a challenge. Normally this results in relenting to using a service […]

Read More >

Layered Dependency Injection

Introduction In a tiered architecture with Dependency Injection we have the problem that the bootstrapper or initialization section of your main project doesn’t have a reference to every project we need to inject into our container.  Therefore we end up referencing projects for the sole purpose of injecting them into the container. While there is technically no harm in doing […]

Read More >

Proxy Pattern To Separate Dependencies

Introduction Adding dependencies to your project is one of the biggest causes of project complexity. As the dependencies increase, so does the complexity. When developing frameworks (e.g. Exrin) this becomes an even bigger issue as you must continuously update your framework at the whim of your dependencies. When developing projects for your application, I prefer to […]

Read More >

Toast Notifications for Xamarin Forms

I manage the fairly popular Toasts.Forms.Plugin which displays toast like notifications on all platforms. This was originally created almost 2 years ago by EgorBo when the notification system on each platform was not very extensible or usable, hence you had to create your own if you wanted to display notifications while the app was in […]

Read More >

Xamarin Forms Triggers vs Behaviors vs Effects

Introduction Xamarin Forms has many ways to modify the UI based on certain criteria, data or events such as Triggers, Behaviors or Effects. You can also accomplish the same or similar things with each technique hence initially it can be confusing as to which method would be the best for each scenario. Triggers Triggers take […]

Read More >

Access a Control Method from a ViewModel

Making a control in your view MVVM friendly by allowing binding to your ViewModel, can be done in several different ways. When developing in the MVVM pattern, you have no access to the View and hence no access to the methods on a Control. Most controls in Xamarin Forms have bindable properties but some do not. […]

Read More >

Cryptography in Portable Libraries

When we think of using Cryptography in Xamarin Forms with a portable library we normally end up looking for a Nuget Package. In most cases we come across PCLCrypto, I have used it in the past and it has been great but I never liked adding additional packages to my projects and now we no longer […]

Read More >