套件概覽
該 is_pirated 套件有助於檢測 Android 與 iOS 上的應用是否從未經授權來源安裝。它提供機制來驗證應用的完整性,並在偵測到盜版時自動終止應用或將使用者重導向至官方商店頁面。專為希望保護其應用免受未經授權分發的開發者設計,該套件可輕鬆整合至 Flutter 專案中,設定簡單。該套件利用平台特定檢查,確保在各種裝置上可靠偵測。
適用情境
- 保護付費應用免受未經授權的分發
- 自動終止盜版應用程式實例
- 重定向使用者到官方應用商店清單
- 在執行時強制執行許可證驗證
- 防止使用修改版或破解版應用
主要特色
- Detects installation from unauthorized sources
- Supports automatic app termination
- Offers redirection to store listing
- Cross-platform compatibility (Android & iOS)
- Simple integration via Flutter pub
- Lightweight and minimal overhead
適合對象
- Developers of paid or premium Flutter apps
- Apps requiring strong anti-piracy measures
- Projects targeting both Android and iOS
- Teams focused on app security and licensing
- Applications distributed through official app stores
使用建議
- 可能在已越獄/越獄的裝置上觸發誤報
- 需要謹慎處理,以避免使用者挫折
- 無法取代伺服器端授權驗證
- 對高級竄改的防護效果有限
- 應與其他安全實踐一同使用