根据服务器的用户权限动态加载模块到 native/hybrid 移动应用程序

Load modules dynamically according to the user permission from server to native/hybrid mobile app

图表 1:

我需要开发一个 Ionic 4 移动应用程序,如上图所示。也就是说,我们只是上传一个 Shell 应用程序或具有非常基本的功能。

第 1 步:发送激活码

第二步:然后用户根据它的响应登录

第三步:根据图1动态加载相关模块到app中

我可以开发这样的应用程序吗?据我所知,我认为我们无法做到这一点,因为我们需要在 build/wrapped 使用 Cordova 之前预先准备好所有内容。这里有什么线索吗?

注意:动态应用模块下载是这里的重点。例如,我们不想在客户 C 将来加入时修改 shell。

所以我认为您需要说服客户利用 Ionic Pro 的部署服务(仅处理应用程序包的 Web 内容)或寻找其他解决方案。

考虑到 Apple 开发人员指南的这一条款,提议的机制存在风险:

2.5.2 Apps should be self-contained in their bundles, and may not read or write data outside the designated container area, nor may they download, install, or execute code which introduces or changes features or functionality of the app, including other apps. Educational apps designed to teach, develop, or allow students to test executable code may, in limited circumstances, download code provided that such code is not used for other purposes. Such apps must make the source code provided by the Application completely viewable and editable by the user.

从这里开始:https://developer.apple.com/app-store/review/guidelines/#extensions