Open johnagar opened 4 years ago
I don't think it would work to get the raw data through this Ionic app:
Raw data is stored in a serializable extra, "com.symbol.datawedge.decode_data"
In native code this extra is an ArrayList<byte[]> and extracted as follows:
ArrayList<byte[]> rawData =
(ArrayList <byte[]>) initiatingIntent.getSerializableExtra("com.symbol.datawedge.decode_data");
I think the missing piece will be the code to convert this native code to JSON which would be here: https://github.com/darryncampbell/darryncampbell-cordova-plugin-intent/blob/master/src/android/IntentShim.java#L732 but I don't believe that code will correctly handle the conversion... it may do so it is probably worth testing.
I need to get Raw Data output as the barcode being scanned is encrypted. Before writing my own code I want to experiment by changing the demo code. Where would I find the various parameter names and associated values?