Comment to 'I can't add code in Studio-Designer-Injections.'
  • Hello @Claudio Acosta !

    First of all, this code looks like the OneSignal integration. In this case, you don't need to insert it because UNA already has the necessary code for that just enter your key and secret in the Studio->Settings->Push notifications area.

    Second point is placed in the disabled possibility to insert the complex Javascript code to the server by security reasons.

    • Hi Leonid

      Yes, it's the OneSignal integration.

      Specifically, what I did was configure the "OneSignal: App ID" and "OneSignal: REST API Key" fields in Studio->Settings->Push. Then I uploaded the OneSignalSDKWorker file to the root directory of my website.

      Is this correct, or should I not upload that file?

      Anyway, I tried both with and without the .js file in the root directory, and it doesn't work either way. The subscription window never appears.

      • You didn't insert the RET API Key in the settings, that's why you have the Javascript error like:

        {"errors":["app_id must be a valid UUID"]}
        

        So it would be good to fix this point first and check how it will affect.