Hi,
I need to include <link rel="manifest" href="/manifest.json"> tag on page header on our mobile app. I've used AddLinkTag server action in Oninitilalize but it doesn't appear on page header at all. Is this function works on mobile apps or there is another way to include custom links in header?
Thank you
Hi Mykola,
You could do it using jQuery. Create a new script in your module with the following code:
$(document).ready(function() { $('head').append('<link rel="manifest" href="/manifest.json">'); });
Then set it as a required script in your screen.
Of course, you're also gonna have to add jQuery as a required script, if you haven't done it already. Make sure to add it before the script above in the screen's required scripts list.
Thank you very much Aurelio ! it solved the problem.