Today, i created a simple inventory transfer location app in VS2019 with Xamarin forms (4.8Version), which it will be used in a Zebra TC56 Nougat, it is just one screen with couple of labels (Location to transfer, Serial to transfer, Item Code of serial, description of the item and the Qty of object ) the user scan the barcode of the location to transfer the material, and the serial, both using the Zebra barcode reader (Try both EMDK --4.0 and 6.0-- and Datawedge), the first is the location, it is get on the Android (EMDK) and send to the Xamarin using the messagingcenter, if the barcode start with 1L we remove the 1L and assign the remaining to the location label (We don't want user type it). then the user will start scanning the serials of the items to transfer, in here if the scanned data start with "S" it sent to our DB to retrieve the data of the serial through a web service, using the HTTPClient Post. the information is retrieved the data is assigned to the labels ItemCode, Description, and Qty, if the current location of the object is not the recently scanned location it call another web service passing the new location and the serial.
The app works, but after some scanning the app re-init (On-Create() Android runs again), i observe this on the Debug mode (Hook the TC56 to the computer, i put a stop on the call to the Enable of the Barcode reader, and see that the debug stop again on this section) and also on release mode (The App has a counter of how many serials has been transfer, but when the app re-init all labels get blank and the counter show 0).
I don't have any clue about what is causing the app to re-init, all functions have Try-Catch.