Worklight 6.2在应用程序系列之间共享信息 [英] Worklight 6.2 share info between apps family

查看:97
本文介绍了Worklight 6.2在应用程序系列之间共享信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Worklight 6.2中,您可以在同一系列的应用程序之间共享信息。

In Worklight 6.2, you are able to share information between applications in the same family.

我使用此API了解您可以在应用之间共享键值对。是否可以将复杂的JSON设置为值?或者只能共享字符串?

My understanding using this API you can share key value pairs between apps. Is it possible to set a complex JSON as the value? Or is it only possible to share a string?

我不确定如何定义应用程序属于应用程序系列 - 如何配置?是否有关于此功能的教程?

I'm not sure about how you need to define that an applications belongs to an applications family - How is it configured? Is there a tutorial about this functionality?

推荐答案

在worklight 6.2中启用简单数据共享

To enable simple data sharing in worklight 6.2


  1. 添加环境

  2. 编辑应用程序描述符文件以实现应用程序之间的简单数据共享

  3. 指定应用程序系列名称

  4. 保存并构建所有环境

  1. Add an environment
  2. Edit the application descriptor file to enable simple data sharing between apps
  3. Specify the application family name
  4. save and build all environments

有关详细信息,请参阅启用在工作灯6.2中简单的数据共享

For more info refer Enabling simple data sharing in worklight 6.2

在您的应用中使用简单的数据共享。您可以使用以下 WL.Client Api's

To use the simple data sharing in your app. You can use the following WL.Client Api's


  • setSharedToken(object)

  • getSharedToken(object)

  • clearSharedToken(object)

  • setSharedToken(object)
  • getSharedToken(object)
  • clearSharedToken(object)

有关详细信息,请参阅 WL.Client api for worklight 6.2

For more info refer WL.Client api for worklight 6.2

截至目前,我没有找到任何简单数据共享的教程。

As of now i didn't find any tutorials for simple data sharing.

要回答问题AFAIK,您可以使用JSON对象作为密钥的值。它仅适用于Android和iOS环境。

And to answer you question AFAIK you can use JSON object as value for your key. It is only available for Android and iOS environments.

更新2014年7月18日
我无法找到任何教程为应用之间的简单数据创建了一个

这篇关于Worklight 6.2在应用程序系列之间共享信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆