TrueCaller SDK进入iOS

时间:2017-04-03 06:45:40

标签: ios objective-c xcode sdk

我必须将真实的SDK插入到我的应用中, 这将验证用户身份,我将得到truecaller的响应,我必须在整个应用程序中使用。

我已从

下载了SDK
https://developer.truecaller.com/

并集成到我的代码中。 我能够使用truecaller登录并且它要求许可。 如果我单击确定, 它打开浏览器并显示一些JSON,

像这样

{"code":404, "message":"HTTP 404 not found"}

我使用了SDK提供的相同网址

https://si568c53146f0a4130bf723b62d52361b6.truecallerdevs.com

以下屏幕截图显示了流程

enter image description here

enter image description here

1 个答案:

答案 0 :(得分:0)

您是否按照以下步骤操作:

将LSApplicationQueriesSchemes下的条目truesdk添加到Info.plist文件中

<key>LSApplicationQueriesSchemes</key>
<array>
<string>truesdk</string>
</array>

enter image description here

在您的项目中添加Truecaller提供的关联域名(例如applinks:si44524554ef8e45b5aa83ced4e96d5xxx.truecallerdevs.com) - &gt;能力&gt;相关域名。前缀&#39; applinks:&#39;需要通用链接才能正常运行。

重要提示:替换&#39; https://&#39;部分来自提供的应用程序链接&#34; applinks:&#34;。 ie https://si44524554ef8e45b5aa83ced4e96d5xxx.truecallerdevs.com应成为applinks:si44524554ef8e45b5aa83ced4e96d5xxx.truecallerdevs.com,同时添加到权利中。

(请注意,在设置applinks时没有http://或https://前缀:)