Jump to content

.NET driver on Xamarin.Android problem


Skylare

Recommended Posts

Hello,

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,

Jan

Link to comment
Share on other sites

  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...