Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何实现非内置 uni小程序集成方式:应用资源包(.wgt)可以选择从云端获取或共享文件等方式,宿主通过 uni小程序 SDK 的 API 调用 releaseWgtToRunPath 实现释放资源包集成 uni小程序 #22

Closed
openimchat opened this issue Feb 14, 2024 · 5 comments
Labels
question Further information is requested

Comments

@openimchat
Copy link

官方也没有提供远程加载的方式,可以给出简单的实例代码么?

@AmosHuKe
Copy link
Owner

官方 API 示例:DCUniMPSDK.getInstance().releaseWgtToRunPathFromePath(appid, wgtPath, callBack)

我还没有实际用过,你可以试试。

1、宿主通过远程的方式将 wgt 文件下载保存到 getExternalCacheDir().getPath() 路径。
2、调用 releaseWgtToRunPathFromePath 进行 wgt 释放。
3、调用 startApp 打开。

@AmosHuKe AmosHuKe added the question Further information is requested label Feb 15, 2024
@openimchat
Copy link
Author

你还没有封装releaseWgtToRunPathFromePath接口的实现,可以简单实现一下吗?😄

@AmosHuKe
Copy link
Owner

这个就需要你自行去尝试一下了 😺,官方有示例代码,Android 原生代码实现一下~

@openimchat
Copy link
Author

加个QQ呗,有偿帮忙实现一下,我不太懂安卓和IOS。😁

@AmosHuKe
Copy link
Owner

非常抱歉 😂,暂时没啥时间,可以找找其他懂安卓和 iOS 的看看。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants