Hi,
I’ve added a +1 button in my app:
I’ve used this code:
<div class="g-plusone" data-size="tall" data-href="GOOGLE PLAY STORE LINK TO MY APP"></div>
and
(function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/platform.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })();
I’ve also allowed the api:
index.html:
<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://apis.google.com">
config.xml:
<allow-navigation href="https://apis.google.com" />
The problem:
This works on the web (ionic serve) but It doesn’t work on the app…
When I click nothing happens… (no errors…)
Anyway I can make this work or there’s any other way to do it?
Note: If I’ve clicked +1 on the web it doesn’t show me the red button on the app (It doesn’t know who I am…)
Note 2: I don’t want to make a login/signup, just a +1 button…
Thanks for your help!