euc-releases / workspace-ONE-SDK-integration-samples

Workspace ONE SDK Integration Samples
BSD 3-Clause "New" or "Revised" License
16 stars 8 forks source link

Documentation Problem #22

Closed dcpozzi closed 10 months ago

dcpozzi commented 1 year ago

Describe the bug

The documentation for integration of the SDK with Android Apps targeting API level 31 or above says that it needs to implements the code snippet below. But the class WS1AnchorAppEventImpl isn't public or isn't available in the package "com.airwatch.android:AirWatchSDK:23.03"

public class AppApplication extends Application implements SDKClientConfig {
    @NonNull
    @Override
    public WS1AnchorEvents getEventHandler() {
       return new WS1AnchorAppEventImpl();
    }
}

Reproduction steps

Try to integrate with Android app targeting Android SDK level 31.

Expected behavior

App integrated with Airwatch SDK.

Additional context

No response

Poorna-Prabhu commented 10 months ago

As described in the Base Integration Guide : https://vdc-download.vmware.com/vmwb-repository/dcr-public/35935117-d488-476d-80ee-35059e08902c/6d9256f5-662f-4359-8888-bc7549096dd9/WorkspaceONE_Android_BaseIntegration.pdf

To integrate at the Framework level, do the following tasks:

  1. Add the Client SDK.
  2. Add the Framework.
  3. Initialize the Framework.

As a part of first step , Add the Client SDK: Anchor Event Handler Implementation has to be done where a new class has to be added in the application side implementing WS1AnchorEvents interface eg: AppWS1AnchorEvents. Example of how this class should look like is also mentioned in the document in both Kotlin and java. Once this is done in the second step : Add the Framework: override getEventHandler() in App’s Application class to return WS1AnchorEvents object which is the same AppWS1AnchorEvents class. So WS1AnchorAppEventImpl is same as AppWS1AnchorEvents . This will be renamed and rectified in the documentation to avoid any confusion in next Release 24.01. Additionally, we also provide public GitHub samples which include example of SDK and Framework level integration and all these steps are also added there. Feel free to refer this as and when required: https://github.com/vmware-samples/workspace-ONE-SDK-integration-samples/tree/main/IntegrationGuideForAndroid/Apps

Hope this will resolve your query.