是否有使用Node.js的Phonegap API的任何实现?

时间:2022-06-18 05:41:29

I have created a mobile app for Android and iOs, it used some parts of the Phonegap API (connection, FileAPI, FileTransfer, camera, audio)

我为Android和iOs创建了一个移动应用程序,它使用了Phonegap API的一些部分(连接,FileAPI,FileTransfer,相机,音频)

The mobile app is responsive and works offline, my plan is to create a Desktop version for Windows, Linux and Mac using NodeWebkit https://github.com/rogerwang/node-webkit so I'm looking for an implementation or ideas of how to implement the Phonegap API using Node.js

移动应用程序是响应式并且脱机工作,我的计划是使用NodeWebkit https://github.com/rogerwang/node-webkit为Windows,Linux和Mac创建桌面版本,所以我正在寻找实现或如何实现使用Node.js实现Phonegap API

As far as I know, it will be possible to implement this APIs:

据我所知,可以实现这个API:

Connection: Using Node dns module FileAPI: Using Node file implementation FileTransfer: Using the http module Camera: Using WebRTC Chrome APIS Audio: Using WebRTC Chrome media APIs

连接:使用Node dns模块FileAPI:使用节点文件实现FileTransfer:使用http模块Camera:使用WebRTC Chrome APIS Audio:使用WebRTC Chrome媒体API

Do you think that the node modules mentioned are the appropriate ones? Do you know any current implementation of Phonegap APIs using Node.js?

您认为所提到的节点模块是否合适?您是否知道使用Node.js的当前任何Phonegap API实现?

2 个解决方案

#1


1  

I found this one: https://github.com/xverges/cordova-nodewebkit

我找到了这个:https://github.com/xverges/cordova-nodewebkit

The problem is that it's not active.

问题是它不活跃。

#2


1  

Try using the sails.js framework, built on node.js. You can use phonegap and bootstrap both with sails.

尝试使用基于node.js构建的sails.js框架。您可以使用带有风帆的phonegap和bootstrap。

#1


1  

I found this one: https://github.com/xverges/cordova-nodewebkit

我找到了这个:https://github.com/xverges/cordova-nodewebkit

The problem is that it's not active.

问题是它不活跃。

#2


1  

Try using the sails.js framework, built on node.js. You can use phonegap and bootstrap both with sails.

尝试使用基于node.js构建的sails.js框架。您可以使用带有风帆的phonegap和bootstrap。