跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[问与答] 据说 NTQQ 桌面版是 Electron,那移动版是什么开发的呢?

发表于
很多软件的桌面端都使用 Electron ,但我搜了很久,却几乎没人提到他们的手机端是用什么开发的。Electron 是基于 Chromium 和 node.js 的,这俩玩意至少也能在安卓运行,为何却不支持手机端呢。

例如 NTQQ 号称大一统,我估摸着意思应该是开放环境是统一的?或者当中用到的类、库是统一的?或者干脆就是一个项目?

翻阅了很久,网页技术跨平台基本上都推荐 Electron ,好吧我也认同毕竟用的软件太多了,但是!移动端都用什么呢?毕竟主流软件都是有桌面端和手机端的,但大家似乎都闭口不言了(就像有什么隐秘,大家默契的选择了不告诉别人)。

我想问的是,桌面端跨平台用 Electron 已经够了,但桌面已经写了一套,没理由不把各种代码共享给手机端吧,这样手机端开发起来就不会有什么差异了(逻辑、数据)。

所以如何在有了 Electron 桌面端项目,尽可能用这套代码去开发手机端(移动端)呢?国内这么多软件,大家普遍采用什么方案呢?

这里不聊全平台跨平台(已经看到了大部分人会推荐 Flutter),这里只聊 Electron 的移动端解决方案。

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.