Skip to main content

Utilities

Share, Conversation, and Native Utilities

Load https://sdk.minepi.com/pi-sdk.js and call Pi.init() before using these methods. Native utility features require the application to run inside the Pi Browser (or the Sandbox).

  • Share dialog:window.Pi.openShareDialog(title, message)
  • Open conversation:window.Pi.openConversation(conversationId)
  • Native features:window.Pi.nativeFeaturesList() (lists available Pi-native methods)
  • Request permission:window.Pi.requestPermission(permissionName)
  • Copy to clipboard:window.Pi.copyText(text)
  • Open URL in system browser:window.Pi.openUrlInSystemBrowser(url)

All utility methods return Promises that resolve with their respective results or reject if the feature is unavailable or fails. For the most up-to-date documentation on these methods, visit the Pi Platform Docs.