All Projects → angelinn → Xam.Plugin.AutoUpdate

angelinn / Xam.Plugin.AutoUpdate

Licence: MIT License
Xamarin Forms plugin that auto updates your Android or UWP sideloaded application.

Programming Languages

C#
18002 projects
Batchfile
5799 projects

Projects that are alternatives of or similar to Xam.Plugin.AutoUpdate

Htmllabelplugin
Use this Xamarin.Forms plugin to display HTML content into a label.
Stars: ✭ 119 (+440.91%)
Mutual labels:  xamarin, forms, uwp
Toast
To use it in PCL or .NetStandard projects write this line of code : CrossToastPopUp.Current.ShowToastMessage("Message");
Stars: ✭ 51 (+131.82%)
Mutual labels:  xamarin, forms, uwp
Xam.plugin.webview
Xamarin Plugin for a HybridWebView in PCL projects.
Stars: ✭ 132 (+500%)
Mutual labels:  xamarin, forms, uwp
arcgis-runtime-demos-dotnet
Demo applications provided by the ArcGIS Runtime SDK for .NET Team
Stars: ✭ 51 (+131.82%)
Mutual labels:  xamarin, uwp
Portable-WebDAV-Library
Moved to codeberg.org - https://codeberg.org/DecaTec/Portable-WebDAV-Library - The Portable WebDAV Library is a strongly typed, async WebDAV client library which is fully compliant to RFC 4918, RFC 4331 and "Additional WebDAV Collection Properties". It is implemented as .NETStandard 1.1 library in oder to be used on any platform supporting .NETS…
Stars: ✭ 45 (+104.55%)
Mutual labels:  xamarin, uwp
ListViewWithSubListView
Xamarin.Forms Expandable ListView With Sub-ListView MVVM Pattern
Stars: ✭ 40 (+81.82%)
Mutual labels:  xamarin, forms
LaunchMapsPlugin
Launch External Maps Plugin for Xamarin and Windows
Stars: ✭ 49 (+122.73%)
Mutual labels:  xamarin, uwp
ably-dotnet
.NET, Xamarin and Mono client library SDK for Ably realtime messaging service
Stars: ✭ 32 (+45.45%)
Mutual labels:  xamarin, uwp
EBind
🔵 .NET Data Binding we deserve: concise, fast, feature-rich
Stars: ✭ 141 (+540.91%)
Mutual labels:  xamarin, uwp
vs-material-icons-generator
This plugin will help you to set material design icons to your Xamarin projects In Visual Studio.
Stars: ✭ 50 (+127.27%)
Mutual labels:  xamarin, uwp
WeakEventListener
The WeakEventListener allows the owner to be garbage collected if its only remaining link is an event handler.
Stars: ✭ 25 (+13.64%)
Mutual labels:  xamarin, uwp
Xalami
A delicious way to kickstart your Xamarin Forms project
Stars: ✭ 18 (-18.18%)
Mutual labels:  xamarin, uwp
Nethereum.UI.Wallet.Sample
Cross platform wallet example using Nethereum, Xamarin.Forms and MvvmCross
Stars: ✭ 77 (+250%)
Mutual labels:  xamarin, uwp
ColorPicker
Color pickers for Xamarin Forms.
Stars: ✭ 38 (+72.73%)
Mutual labels:  xamarin, uwp
uno.toolkit.ui
A set of custom controls for the WinUI and the Uno Platform not offered out of the box by WinUI, such as Card, TabBar, NavigationBar, etc.
Stars: ✭ 45 (+104.55%)
Mutual labels:  xamarin, uwp
XPlat-Windows-APIs
UWP style APIs cross-platform with .NET!
Stars: ✭ 31 (+40.91%)
Mutual labels:  xamarin, uwp
XamFormsMvxTemplate
A Visual Studio 2017 template for projects based on Xamarin.Forms 3.3 and MvvmCross 6.2
Stars: ✭ 27 (+22.73%)
Mutual labels:  xamarin, uwp
Microcharts
Create cross-platform (Xamarin, Windows, ...) simple charts.
Stars: ✭ 1,742 (+7818.18%)
Mutual labels:  xamarin, uwp
Malclient
Not so small client app for Myanimelist.net - Windows 10 UWP & Android
Stars: ✭ 253 (+1050%)
Mutual labels:  xamarin, uwp
APK-Installer
An Android Application Installer for Windows
Stars: ✭ 1,076 (+4790.91%)
Mutual labels:  uwp, apk

Xam.Plugin.AutoUpdate [In Development]

Auto update for your Android/UWP - pull requests are accepted

android android uwp uwp

What is it?

  • Check for update and auto install sideloaded Android or UWP application
  • Check for update and redirect to play store
  • The auto install part works only with UWP and Android

How does it work?

  • Developer provides a check for updates function, returning if there is an update available and the url to the file, if provided
  • The plugin checks for updates every RunEvery period of time
  • When a new version is available and the user clicks the confirm button, the file from the provided url is downloaded and started

Installation

Nuget package will be available soon.

Install the package on the mobile projects in your solution (.netstandard, Android, UWP, iOS).

Android

For Android API > 23 a FileProvider configuration is required:

  • Add to AndroidManifest
  <application android:label="...">
    <provider android:name="android.support.v4.content.FileProvider" android:authorities="com.companyname.application" android:grantUriPermissions="true" android:exported="false">
      <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths" />
    </provider>
  </application>
  • Create a new file - Resources/xml/file_paths.xml
<?xml version="1.0" encoding="utf-8"?>
<paths>
  <files-path name="files" path="/" />
</paths>
  • Add to MainActivity
AutoUpdate.Init(this, authority);

NOTE: The authority value is the same as the android:authorities in the AndroidManifest file.

NOTE: Since Android Oreo (API 27), every app needs additional access to install APKs. You must add this permission if you wish to support Oreo:

<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />

Usage

  • Create an UpdateManagerParameters option.
  • Use UpdateManager.Initialize(parameters, mode) somewhere in your forms project. (e.g in App.xaml.cs)
UpdateManagerParameters parameters = new UpdateManagerParameters
{
    Title = "Update available",
    Message = "A new version is available. Please update!",
    Confirm = "Update",
    Cancel = "Cancel",
    // choose how often to check when opening the app to avoid spamming the user every time
    RunEvery = TimeSpan.FromDays(1),
    CheckForUpdatesFunction = async () =>
    {
        // check for updates from external url ...
        return new UpdatesCheckResponse(true, downloadUrl);
    }
}

Use UpdateMode.AutoInstall to download and install the application

UpdateManager.Initialize(parameters, UpdateMode.AutoInstall);

or UpdateMode.OpenAppStore to open the corresponding app store

UpdateManager.Initialize(parameters, UpdateMode.OpenAppStore);

Auto install

Using the auto install mode, the plugin will download the file provided in the DownloadUrl parameter and launch it as apk or appxbundle, depending on the platform.

Note: As stated earlier, this option does not work with iOS, due to the restrictions of the operating system.

Open app store

Using the open app store mode, the plugin will open the specified platform's app store, if an update is available.

Note: Additional logic is used for android to determine that only the Google Play store can open the market:// url and no other app that has registered for it.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].