【问题标题】:Touch Authentication Feature MobileFirst 7.0 not working触摸身份验证功能 MobileFirst 7.0 不起作用
【发布时间】:2016-01-08 07:13:07
【问题描述】:

我正在尝试在 MobileFirst 7.0 的示例应用程序中实现触摸身份验证功能。我正在按照 URL 中提到的步骤进行操作

https://www.ibm.com/developerworks/community/blogs/worklightsmobileplayground/entry/touchid_authentication_with_worklight?lang=en

我面临两个问题:-

1) 我必须在 cordova_plugins.js 中插入一个代码 sn-p。当我这样做时,我的应用程序会挂在启动屏幕上。

2) 在此之前,当我在 Classes 文件夹中导入两个原生文件时,Xcode 无法构建。

请帮忙。

谢谢。

【问题讨论】:

  • 您可以从链接运行示例吗?另外,您在 cordova_plugins.js 中插入了什么代码 sn-p?
  • 该示例也不起作用,代码 sn-p 如下:- { "file": "../js/TouchID.js", "id": "nl.x- services.plugins.touchid.TouchID", "clobbers": ["window.plugins.touchid"] }

标签: ibm-mobilefirst


【解决方案1】:

我建议您按照以下博客文章中提供的类似说明尝试集成插件,该文章详细说明了如何在 MobileFirst Hybrid 应用程序中为第 3 方 Cordova 插件执行此操作:https://developer.ibm.com/mobilefirstplatform/2015/08/03/integrating-3rd-party-cordova-plug-ins/

我猜你可能没有正确编辑插件的 JS 文件,这需要一些包装,如上博文所述。

【讨论】:

  • 好的。感谢您的帮助:)
猜你喜欢
  • 1970-01-01
  • 2019-01-18
  • 1970-01-01
  • 2016-07-07
  • 1970-01-01
  • 1970-01-01
  • 2016-02-28
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多