getVoipToken static method

Future<String?> getVoipToken()

Implementation

static Future<String?> getVoipToken() async {
  try {
    final token = await FlutterCallkitIncoming.getDevicePushTokenVoIP();
    if (token != null) {
      return token;
    } else {
      return "";
    }
  } catch (e) {
    showLogE(e.toString(), className: "getVoipToken");
    return "";
  }
}