Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Mobile Operator

Android - app to app

  • Last UpdatedFeb 17, 2025
  • 1 minute read

Steps to create a peripheral plugin application

  1. Open Visual studio and create an Android Xamarin application.

  2. Add IntelaTrac.Mobile.Peripheral.Sdk.dll reference to the Android Xamarin project.

  3. Create a new class IntelatracRequest.cs and implement the IRequestHandler interface. For an example, refer to IntelaTracRequest.cs in the sample project.

  4. Refer to the section IRequestHandler for details regarding the IRequestHandler methods.

  5. In the Initialize method of the IntelaTracRequest class, create an instance of the class implementing the real-time peripherals/ peripheral SDKs. For example, refer PeripheralMock.cs class in the sample project.

  6. Add a new class "Plugin.cs" to the project and inherit the "PeripheralService" class from the Intelatrac.Mobile.Peripheral.Sdk.dll.

  7. Override the Register method of the PeripheralService class in the Plugin class and register the peripheral type and implementation of IRequestHandler as shown below:

    public override void Register()

    {

    this.Register(Type, new IntelaTracRequest());

    }

    • Peripheral Type indicates the category of the peripheral plugin. For example, "Barcode", "RFID", "Temperature", etc.

    • Peripheral type registered with the Peripheral Service should match with the Type configured under server information in Peripheral information bag.

  8. Add the Service and IntentFilter attributes in the Plugin class as shown below:

    [Service(Name = "CommmunicationChannelId", Exported = true)] [IntentFilter(new String[] { "CommunicationChannelId })]

    • CommunicationChannelId (such as com.aveva.mobileoperator.plugin.sampleperipheraldevice) is the peripheral plug-in app that communicates with the AVEVA Mobile Operator app.

    • The CommunicationChannelId must be unique and must match with the CommunicationChannel of the peripheral mentioned in PeripheralInformationBag.

  9. Build the project and deploy the plugin-app on the Android device.

TitleResults for “How to create a CRG?”Also Available in