hanzouti
hanzouti

Reputation: 48

Implementing disqus within a mobile app

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.

Upvotes: 2

Views: 1659

Answers (1)

Ryan V
Ryan V

Reputation: 3100

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

Upvotes: 5

Related Questions