By Kymo Biddulph on Sunday, 03 December 2017
Posted in General Issues
Likes 0
Views 1K
Votes 0
Hi

Does your app load the SDK as well as placing the code in your template index file.

I just seem to get it loading twice on every page and this error in the console

OneSignal: The web push SDK is included more than once. For optimal performance, please include our SDK only once on your page.

cheers
Hey Kymo,

Ah yes, you don't need to add them into the head because the app already does this for you.
·
Monday, 04 December 2017 21:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Kymo,

Yes, it also renders the necessary header tags on the page. Do you have another plugin that renders onesignal as well?
·
Sunday, 03 December 2017 23:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark

No - just ES

So are you saying that you don't need to add the SDK load in the HEAD of the index page?

<script src="https://cdn.onesignal.com/sdks/OneSignalSDK.js" async></script>

So do you just remove this part? or all the script that are in the oneSignal instructions?

cheers
·
Monday, 04 December 2017 19:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey

Just changed to Vanilla and am having the same issue again, but this time I have only put the tags in the Vanilla code area and not touched the index page.And I have not included the SDK in the script.
Sorry, but can you tell where I went wrong, please?
·
Sunday, 25 February 2018 13:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Kymo,

I am really sorry for the delay of this reply as it is a weekend for us here. You don't really need to add those SDK stuffs on the template as the extension already renders them for you. Are you still having issues with this?
·
Sunday, 25 February 2018 21:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi mark

Sorry - is this correct?

cheers
·
Tuesday, 27 February 2018 15:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Kymo,

Actually you do not need to add those one signal script into template head section, may i know is it still not working if you remove those one signal script from that head section?
·
Tuesday, 27 February 2018 16:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes it still works if you remove script from the header.

cheers
·
Thursday, 01 March 2018 02:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for getting back to us that was worked.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Thursday, 01 March 2018 10:13
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post