GithubHelp home page GithubHelp logo

matthieume / deviceinfo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aritchie/deviceinfo

0.0 1.0 0.0 7.03 MB

ACR Device Information for Xamarin & Windows

License: MIT License

C# 99.68% Batchfile 0.32%

deviceinfo's Introduction

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

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()

deviceinfo's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.