Flight by RockFrenzy

Dynamically Change the iOS App Icon in Xamarin.Forms

  • supportsAlternateIcons — It is readonly. A Boolean value indicating whether the app is allowed to change its icon. To make it True we need to set up alternative icons in info.plist.
  • ApplicationIconBadgeNumber -The number currently set as the badge of the app icon in Springboard.
  • alternateIconName — It is readonly. The name of the icon being displayed for the app.
  • setAlternateIconName — Changes the app’s icon. If we assign the icon name to null, our application uses the primary icon.
public interface IChangeIconService
void ChangeIcon(string iconName);

NSInternalInconsistencyException: There can only be one UIApplication instance



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store