Social Share button (very important for PWA & Turbo Native apps) | SupeRails #185
22/08/2024
If you open an app in a browser, you can easily copy the URL or click the native Share button.
But if you are running the app as a PWA or Turbo Native app, there is no native browser sharing functionality.
Thus, you will likely want to add a native share button.
Many apps like Instagram & WhatsApp do this.
Let's implement a native Share button using the Navigator.share browser API.
Based on this blogpost: https://blog.corsego.com/stimulus-share-button
8
Sign in to join the conversation