SDK Archive Notice
Pgyer's SDK has been discontinued since 2023. This page lists the recommended replacements for each SDK capability, to help existing integrations migrate.
The Pgyer SDK has been discontinued since 2023 and no longer receives new features or compatibility updates. Do not integrate it into new projects; the documents under this group are kept only as reference for existing integrations.
The SDK historically provided three capabilities: automatic update checking, crash reporting, and install / usage analytics. Current recommended replacements for each are listed below.
Migration Guide
| Former SDK Capability | Current Recommendation |
|---|---|
| Update check / forced update | Use the official code-snippet repository PGYER/AppUpdateChecker, which contains ready-to-use samples for Android, iOS, and uni-app. |
| Crash reporting | No longer provided. Use a dedicated crash analytics service (Sentry, Bugly, Firebase Crashlytics, etc.). |
| Download / install analytics | Query them through the Pgyer Open API, or view them directly on the app detail page in the dashboard. |
Update Check: Minimal Integration Example
The AppUpdateChecker repository provides platform-specific code you can drop in:
Android/— Java implementation backed by thecheckUpdateAPIiOS/— Swift / Objective-C implementationuni-app/— cross-platform JS example
The logic is a single HTTP call to Pgyer's checkUpdate endpoint followed by a version comparison. Copy the sample from the repo straight into your project.
Legacy Documents
The older SDK documents below are retained only as reference for existing integrations and will not be updated as features evolve. If you are migrating from the old SDK, follow the migration guide above to switch off the SDK entirely rather than patching it.