离子电容器JS中的httpd插件

问题描述 投票:0回答:1

我们正在开发离子电容器混合移动应用程序。

此项目 ionic cordova 稍后我们将离子电容器项目转换为最新版本 ionic cordova 我们使用了这个插件:https://www.npmjs.com/package/@ionic-native/http

import { Httpd, HttpdOptions } from '@ionic-native/httpd/ngx';

const options: HttpdOptions = {
      www_root: dirpath,                      //storage/emulated/0/Android/data/io.test.testapp/files/website/
      port: 9000,
      localhost_only: true,
    };

this.httpd.startServer(options).subscribe((url) => {})

但是现在我们正在研究 ionic 和 CapacitorsJs,所以我们需要内部启动服务器的插件。

angular ionic-framework cordova-plugins capacitor
1个回答
0
投票

您可以使用 @Capacitor/Http 插件代替。

© www.soinside.com 2019 - 2024. All rights reserved.