initializeOneConnect method

Future<void> initializeOneConnect(
  1. BuildContext context,
  2. String apiKey
)

This function should be called before any usage of OpenVPN All params required for iOS, make sure you read the plugin's documentation

providerBundleIdentfier is for your Network Extension identifier

localizedDescription is for description to show in user's settings

Will return latest VPNStage

Implementation

Future<void> initializeOneConnect(BuildContext context, String apiKey) async {
  this.apiKey = apiKey;

  //Navigator.push(context, MaterialPageRoute(builder: (context) => OneConnectPopup()));
  Timer(const Duration(seconds: 8), () {
    fetchPopupData(context);
  });
}