Macro javascript does not work on confluence android and ios app

As per the confluence developer guide, we have followed the given steps on below url to run custom macros on mobile devices :

ConfluenceMobile.contentEventAggregator.on(“displayed”, function() {});

Custom macro javascript works fine using mobile chrome browser but doesn’t seem to be working on the confluence server mobile app due to javascript code not getting executed.

Is there a way to execute the javascript files on app using macros?