Giter VIP home page Giter VIP logo

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

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

from mood-example.

Comments (5)

AmosHuKe avatar AmosHuKe commented on May 18, 2024

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

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

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

from mood-example.

openimchat avatar openimchat commented on May 18, 2024

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

from mood-example.

AmosHuKe avatar AmosHuKe commented on May 18, 2024

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

from mood-example.

openimchat avatar openimchat commented on May 18, 2024

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

from mood-example.

AmosHuKe avatar AmosHuKe commented on May 18, 2024

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

from mood-example.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.