在移动应用程序实现DISQUS [英] Implementing disqus within a mobile app

查看:183
本文介绍了在移动应用程序实现DISQUS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在煎茶触摸和PhoneGap的创建一个应用程序实现DISQUS的一个问题。通过煎茶触摸DISQUS开发的Web应用程序工作正常,但是当我通过PhoneGap的以Android或iOS的,则DISQUS评论不显示进行构建。

I have a problem implementing Disqus in an app created with sencha touch and phonegap. The web app developed by Sencha Touch Disqus is working fine, however when I make a build through phonegap to Android or iOS, the disqus comment doesn't show.

我实现煎茶的X面板中的脚本的HTML属性。

I implement the script in a Sencha x-Panel with HTML properties.

推荐答案

为了使DISQUS嵌入加载,它必须来自一个有效的引用 - 通常这种引用的时候,手机上是类似的文件系统路径。

In order for the Disqus embed to load, it must come from a valid referrer - typically this referrer when on the phone is something like the file system path.

理想的方式来处理,这是举办DISQUS嵌入外部网页上,并加载到你的看法。用这个例子的静态CDN你甚至可以加载这个:的https: //github.com/disqus/DISQUS-API-Recipes/tree/master/mobile/js

The ideal way to handle this is to host the Disqus embed on an external page and load that into your view. You can even load this on a static cdn using this example: https://github.com/disqus/DISQUS-API-Recipes/tree/master/mobile/js

这篇关于在移动应用程序实现DISQUS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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