cordova-plugin-device icon indicating copy to clipboard operation
cordova-plugin-device copied to clipboard

Is there a way to differentiate between an Android phone and a Huawei phone using this plugin?

Open Morgs007 opened this issue 4 years ago • 1 comments

Is there a way to differentiate between an Android phone and a Huawei phone using this plugin? There is no platform.is( "huawei" ) ...

Any suggestion?

Morgs007 avatar Nov 11 '21 11:11 Morgs007

I think you could compare device.manufacturer to "Huawei", if it is a Huawei phone using Android.

GNozaki avatar Dec 13 '21 17:12 GNozaki

As GNozaki said, you can use device.manufacturer to check the device manufacturer.

But you can't differentiate if the Huawei device is an Android phone or a Harmony phone, not sure if that's what you want. Harmony OS is not officially supported by Apache.

jcesarmobile avatar Sep 06 '22 19:09 jcesarmobile