Implementing disqus within a mobile app

混江龙づ霸主 提交于 2019-12-06 12:43:26

问题


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.

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


回答1:


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.

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



来源:https://stackoverflow.com/questions/22190584/implementing-disqus-within-a-mobile-app

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