IBM Mobilefirst - Custom direct update is not happening in ionic2

送分小仙女□ 提交于 2019-12-23 05:20:27

问题


I have used adapter, authentication, server everything of MFP. But now I am stuck in Direct Update. If I am pushing mfpdev app webupdate direct update default dialog is coming and I can update application.

But issue is coming while I am trying to make a custom dialog for getting the update. I never got the custom dialog. The codes I have used is:\

wl_directUpdateChallengeHandler.handleDirectUpdate = ((directUpdateData, directUpdateContext) => {

      WL.SimpleDialog.show('Update Avalible', 'Press update button to download version 2.0', [{
        text: 'update',
        handler: () => {
          directUpdateContext.start();
        }
      }]);

    });

I cant find the wl_directUpdateChallengeHandler in worklight.d.ts file either. Seeming like in ionic2 we don't have a option for custom direct update dialog. Am I right?

The version I am using is Mobilefirst V8.0.0 and Ionic2

Please help me if anyone have any better understanding on this.

来源:https://stackoverflow.com/questions/45716321/ibm-mobilefirst-custom-direct-update-is-not-happening-in-ionic2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!