Skip to content
ACR Device Information for Xamarin & Windows
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Plugin.DeviceInfo
Samples nuget updates Aug 11, 2018
.gitattributes
.gitignore
Acr.DeviceInfo.sln
ISSUE_TEMPLATE Initial commit Jan 3, 2018
LICENSE.md Initial commit Jan 3, 2018
changelog.md
nuget.exe 6.3 updates Jul 5, 2018
push.cmd
readme.md

readme.md

UPDATE - This library has now moved to the Shiny Framework at https://github.com/shinyorg/shiny

ACR Device Information for Xamarin & Windows

A cross platform plugin to get device and application details

SUPPORT THIS PROJECT

Change Log - August 8, 2018

NuGet Build status

Features

  • Unique DeviceID
  • Screen Dimensions
  • Manufacturer and Model
  • Operating System
  • Application Version Information
  • Current Culture
  • Power State Monitoring
  • Network Monitoring

Platforms

Platform Version
NET Standard v2+
Android 4.3+
iOS 6+
macOS 10ish
Windows UWP 16299+

Setup

  • Make sure to install the nuget package to your core net standard library as well as your platform projects (iOS, Android, etc)

Android

Permissions

  • Battery status - set permissions BATTERY_STATE and DEVICE_POWER
  • Network Monitoring - set permission ACCESS_NETWORK_STATE

To Use

Make sure to install the nuget package in your platform and PCL projects. To use, simply start calling

CrossDevice.Device.<property>
CrossDevice.App.<property>
CrossDevice.PowerState.<property>
CrossDevice.Network.<property>

FAQ

  1. DeviceId is coming back null
  • Follow permission setting as listed above
  1. I'm getting "Platform implementation not supported"
  • Ensure you have installed the nuget package on your actual application project
  1. UWP battery implementation doesn't do anything
  • I haven't been able to find a way to support this yet
  1. The DeviceId changes if I uninstall my app from the phone
  • There isn't a "static" ID on an iphone that really works. I use IdentifierForVendor()
You can’t perform that action at this time.