Creating of smart banner for ios application using angular

563 views
Skip to first unread message

Sergey Kiselev

unread,
Mar 14, 2016, 5:03:50 PM3/14/16
to AngularJS
Hi! Could anyone help with creating of dynamic ios app metatag? https://developer.apple.com/library/ios/documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html
I need to pass dynamic app-argument param into content attribute. I tried to use different metatags plugins such as https://github.com/AvraamMavridis/angular-metatags, creating directives also lead me to fail. Need help

Sander Elias

unread,
Mar 14, 2016, 11:49:46 PM3/14/16
to AngularJS
Hi Sergey,

Really? You want to put the cost of downloading angular into a Add-banner?

David Tulloh

unread,
Mar 15, 2016, 1:41:02 AM3/15/16
to ang...@googlegroups.com, sergio.k...@gmail.com
On 15 March 2016 at 08:03, Sergey Kiselev <sergio.k...@gmail.com> wrote:
I need to pass dynamic app-argument param into content attribute.

Hi Sergio,

It is possible to pass dynamic data into app-argument but it must be done before the page finishes loading. At this point Safari reads the metadata field and does not reread it.

This does provide some limitations, for example you cannot do an asynchronous request for the data.

More details: http://stackoverflow.com/questions/31289530/load-ios-smart-app-banner-through-javascript


As to the specifics of why Angular isn't working for you in that instance... it shouldn't be complicated just a standard template output. You need to provide some code that isn't working otherwise all I can suggest is read the documentation.


David
Reply all
Reply to author
Forward
0 new messages