we have managed to integrate .NET driver to our mobile application running on the Xamarin.Android platform.
When debugging the application it works just fine. The app is sending commands to the PLC.
But when we try to package the app (Archive it) in a APK file, suddenly the app reports errors whenever it tries to communicate with the PLC.
Error message is: Cannot communicate with the PLC with the specified UnitId!
The app has all the required permission in the manifest file (INTERNET, WIFI_ACCESS, etc.).
I have discovered that it has something to do with the mono shared runtime.
If the app has build options "Use shared runtime" and "Fast deployment" checked, it works flawlessly. The problem is - You Cant use those settings when you want to release the app and deploy it to Android device.
Note: It has nothing to do with network, thats fine. Also its not relevant to UnitID in any way.
We have also tested setting
PLCFactory.WorkWithXmlInternally = true;
Again, with no luck..
Could somebody from the developer team please help me with this issue? I've tried to contact the support, but with no luck.
Thanks a lot,