darryncampbell / darryncampbell-cordova-plugin-intent

General purpose intent shim layer for cordova appliations on Android. Handles various techniques for sending and receiving intents.
MIT License
86 stars 130 forks source link

I can not get SN Code #138

Open Singosgu opened 2 years ago

Singosgu commented 2 years ago

Hi Darryncampbell:

I'm a communitor of GreaterWMS--An open source warehouse management system . GreaterWMS Link: Github

Now, I wanna to get the PDA SN code , but failed . How I can get SN code by this plugin?

Singosgu commented 2 years ago

Currently, We use this plugin in our WMS , Our user can use zebra scanner to scan the barcode . cordova template link: GreaterWMS Cordova

darryncampbell commented 2 years ago

Hi, The Android serial number API was changed by Google in A10 to prevent unprivileged apps from accessing the serial number. Zebra devices do expose the SN through a different API but that is based on a content provider so this plugin could not access it. More info and native code samples for the Zebra SN API are here: https://developer.zebra.com/blog/device-identifiers-zebra-devices-running-android-10-%25E2%2580%2593-complete-guide

Singosgu commented 2 years ago

Hi , Could I build it in a cordova plugin?

darryncampbell commented 2 years ago

Hi , Could I build it in a cordova plugin?

Yes, this plugin is released under MIT so there are no restrictions