In a lightening component, I am dynamically creating and adding an iframe like this -

        'aura:id': 'iframe',
        src: iframeUrl,
      function(createdIframe, status) {
         if (status === 'SUCCESS') {
          var body = component.get('v.body');
          component.set('v.body', body);

The iframe is getting added by this. In the iframe i am loading a webpage in which i am fetching some js files from a CDN, and am rendering the page using those files.

This is working fine in Desktop Chrome, Android Chrome, iOS Chrome, Salesforce iOS App

But it is not working in Salesforce Android App.

I added some debug logs and found that onerror of the script tags loading files from CDN is being called, and they are not loading.

Any ideas on why this could be? Or how can i debug this further? As the issue is coming only in Salesforce Android App, its difficult to debug.

Please help.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.