Social Share SDK
Open native share sheets to let users share content.
Written By despia
Last updated About 1 year ago
SDK Usage
const message = "Check out this app!"
const url = "https://yourapp.com"
window.despia = `shareapp://message?=${message}&url=${url}`
Examples
Share Simple Message
const message = "Love this app!"
const url = "https://yourapp.com"
window.despia = `shareapp://message?=${message}&url=${url}`
Share Product
const message = "Just found this amazing product"
const url = "https://yourapp.com/product"
window.despia = `shareapp://message?=${message}&url=${url}`
Share Achievement
const message = "Just reached level 100!"
const url = "https://yourapp.com/download"
window.despia = `shareapp://message?=${message}&url=${url}`
Tips
Keep messages clear and concise
Always include valid URLs
Test on different devices
Handle long messages gracefully
Consider different sharing apps
Need help? Email us at support@despia.com