Tobias Tharaldsen Posted November 8 Posted November 8 Hello. I’m developing an Android app using the Citrix MAM SDK, specifically integrating the Micro VPN functionality. I have some questions regarding the type of Context required in different function calls (enableOkHttpClientObjectForNetworkTunnel, isNetworkTunnelRunning, startTunnel): Starting and Checking the Tunnel: When calling functions to start the Micro VPN tunnel and to check if the tunnel is already running, can different Context types (such as Activity vs. Application context) be used interchangeably? If not, in which situations is it important to use a specific Context type, such as Application or Activity context? Could there be issues if the tunnel is started with an Activity context and that activity is later destroyed? For example, is the Context automatically converted to Application context in this case? What if the tunnel is started with an Activity context, but isNetworkTunnelRunning is later called to check the tunnel, using an Application context (isNetworkTunnelRunning(appContext))? Documentation Suggestions: It would be helpful if the documentation and examples were explicit about the required Context type for each function, as “context” can imply multiple options in Android. A note clarifying when to use Application or Activity context—or if both are acceptable—would improve implementation clarity. Note. I do not have Citrix environment running, and are developing for customer, therefore I cannot test it directly myself, and is the reason I was hoping someone could shed some light upon the various contexts used and what to do and not do :)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now