简体   繁体   中英

Twitter card that links to progressive web app (PWA)

is there a way to use twitter cards together with Progressive web apps? I would like to link the user from the card to my web app so he can install it.

I wanted to use summary card with big image but idk how i could add redirect to my app from there and i cannot use app card since its not an actual ios/android app.

The app card is no longer valid (falls back to a summary card). Your options are really summary card or summary large image card here.

One thing you could do is to add a parameter to the link and detect whether the user-agent is Twitterbot (the Twitter card crawler agent that renders the card, in which case, return the card meta tags in the page header), or any other browser or app, in which case, return the installable PWA link. That might work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM