You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If on api 25+ then return the device name. Otherwise return null.
If wanted, I could create a PR with the preferred solution in this repo for the next 2.x capacitor version and a separate PR for the 3.x capacitor version in the plugins repo.
The text was updated successfully, but these errors were encountered:
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the plugin, please create a new issue and ensure the template is fully filled out.
Feature Request
Description
For iOS the name property on device info is already implemented. See ionic-team/capacitor#2130
But for Android the implementation is missing.
Platform(s)
Android
Preferred Solution
Added in api level 25 there is a way to easily get the device name.
https://developer.android.com/reference/android/provider/Settings.Global#DEVICE_NAME
If on api 25+ then return the device name. Otherwise return null.
If wanted, I could create a PR with the preferred solution in this repo for the next 2.x capacitor version and a separate PR for the 3.x capacitor version in the plugins repo.
The text was updated successfully, but these errors were encountered: