Article Using Shared Content Not loading in App




I'm exploring the shared content feature in AEM Mobile. I followed all the steps in the below document.

Work with shared content using the On-Demand Services API

Now when I use this Article which can use the shared resources, it simply doesn't load. I always get a message saying 'Downloading Failed'. However, other articles do load fine. Is there anything in addition I gotta do to make it work?

I've had some real tough times exploring and getting all the steps done. Please help. I wish to complete this as this is one of the most important feature one would need in any project.

Accepted Solutions (0)

Answers (3)

Answers (3)




From the screenshots provided, the calls appear to be alright.

- Can you make a GET request a /publication/{publicationID}/{entityType​ and retrieved the list of entities ?

Also, check that the shared files are stored in a single entity and consult the On-Demand Services API samples which an examples for sharedContent,it is in the /sharedContent folder.



Sure Andrei. And thanks for helping. Following are the calls I made after successfully Authenticating to get the Access Token to use in each of these calls. The screenshots will have all the info you'd need to get an idea of what I did. Note that I've replaced my actual client ID with a place holder as I wasn't sure if I can share that.

Screen Shot 2016-07-13 at 2.03.30 PM.png

Screen Shot 2016-07-13 at 2.04.23 PM.png

Screen Shot 2016-07-13 at 2.05.01 PM.png

Screen Shot 2016-07-13 at 2.05.55 PM.png

Screen Shot 2016-07-13 at 2.06.39 PM.png

Please let me know if I went wrong anywhere. All these calls were successfully made. And later when I use the sharedArticle, the article which uses shared content by referencing shared content like <script src="../shared/js/main.js"></script> always fails to load in preflight as well as in a signed app. Even if I remove the reference from the article it fails to load. That article just becomes useless after I do all these steps.