Implementing disqus within a mobile app

2019-04-15 03:27发布

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条回答
We Are One
2楼-- · 2019-04-15 03:58

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

查看更多
登录 后发表回答