Web push javascript snippet, to include web-sdk makes the app unresponsive

I have included this snippet (https://docs.urbanairship.com/platform/web/#add-javascript-snippet-to-web-pages) provided in my SDK bundle in my root file, index.html of my single page application. Sometimes it works fine, but most of the time the app goes unresponsive throwing an error that a javascript code is making your browser slow. It seems like this code is going into infinite loop.

If i comment the below mentioned statement in the snippet, I don't face this issue.



Didn't find what you were looking for?

New post


1 comment

  • Hello,

    This is Sean with Urban Airship Technical Support.

    Can you include the error you are receiving? 

    You could also try using the snippet code from the snippet.html file included in the SDK bundle found on the Settings > Platform page in your app's Urban Airship Dashboard. The code here differs slightly in that it comes with the correct configuration values for your app.

    Thank you,
    Sean Conlin
    Urban Airship Technical Support
    Portland, Oregon

    Comment actions Permalink

Please sign in to leave a comment.