alipay / mPaaS

mPaaS Demo 合集,mPaaS 是源自于支付宝的移动开发平台。The collection of demos for mPaaS components. mPaaS is the Mobile Development Platform which oriented from Alipay.
https://tech.antfin.com/docs/2/49549
Apache License 2.0
324 stars 55 forks source link

android 不预置h5,直接下载离线包 #4

Closed wu19910708 closed 4 years ago

wu19910708 commented 5 years ago

android 不预置h5,直接下载离线包,怎么应该怎么实现呢?

glcrazier commented 5 years ago

上传离线包到MDS,使用MPNebula.startApp方法即可

wu19910708 commented 5 years ago

我现在h5容器没有用MPnebula.startApp(),,而是直接用的内嵌形式的 h5Page = h5Service.createPage(this, bundle); h5Page.getPluginManager().register(new NativeLoadingPlugin()); FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams( AUFrameLayout.LayoutParams.MATCH_PARENT, AUFrameLayout.LayoutParams.WRAP_CONTENT);

        mContainer.addView(h5Page.getContentView(), lp);

这种情况应该怎么解决啊?

SpinyTech commented 5 years ago

我现在h5容器没有用MPnebula.startApp(),,而是直接用的内嵌形式的 h5Page = h5Service.createPage(this, bundle); h5Page.getPluginManager().register(new NativeLoadingPlugin()); FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams( AUFrameLayout.LayoutParams.MATCH_PARENT, AUFrameLayout.LayoutParams.WRAP_CONTENT);

        mContainer.addView(h5Page.getContentView(), lp);

这种情况应该怎么解决啊?

MPNebula.updateAll