Comments (4)
There is a try catch around that so should be just fine.... did you copy and paste this code into your app and run it?
from deviceinfoplugin.
Yeah, directly in the project it works fine. By the way, I'm getting the Platform value from inside a NuGet package made by me. The exception returns the following message:
System.Exception: Unable to locate element.
Do you think it's an issue related to my library? Thanks.
from deviceinfoplugin.
Do you have a stack trace? With a try catch like I have I don't see how it can crash.
from deviceinfoplugin.
I put some more checks into 4.1.0-beta, you can try that... but again my code shouldn't crash as i try/catch. Let me know. Closing out.
from deviceinfoplugin.
Related Issues (20)
- DeviceName returns missingMethodException HOT 1
- Attempting to JIT compile method ... while running in aot-only mode. HOT 2
- Getting IMEI of device HOT 1
- TypeLoadException when loading Android F# Libraries HOT 2
- Retrieve Bundle Id/Package Name HOT 1
- DeviceId changes after uninstalling and installing the app. IOs HOT 2
- This functionality is not implemented in the portable version of this assembly HOT 6
- Android 9 Version Incorrect HOT 3
- can't get iOS model HOT 1
- Operating System installation date HOT 3
- CrossDeviceInfo.Current.VersionNumber return 0.0 on Android Pie HOT 3
- System.NotImplementedException during xUnit test from Xam.Plugins.Settings HOT 2
- Sequence contains no elements when internet is disabled HOT 2
- AppVersion format for all 3 platforms is not consistent HOT 1
- I guess we should use Xamarin.Essentials now instead of this plugin? HOT 1
- Id - what does it represent and what permission it requires HOT 1
- Visual Studio and DeviceInfo Match but OS on Android Phone says 9.1 HOT 3
- Feature Request: disclosing PhoneId (aka UDID in iOS)
- Add support for net6.0-windows
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deviceinfoplugin.