Skip to content

Commit 81c060a

Browse files
authored
Merge pull request #59 from Soomgo-Mobile/floydkim-patch-1
docs: Add telemetry callbacks
2 parents f0d26f7 + b65120d commit 81c060a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,16 @@ export default CodePush({
205205
> The URL for fetching the release history should point to the resource location generated by the CLI tool.
206206
207207

208+
#### 4-1. Telemetry Callbacks
209+
210+
Please refer to the [CodePushOptions](https://github.com/Soomgo-Mobile/react-native-code-push/blob/f0d26f7614af41c6dd4daecd9f7146e2383b2b0d/typings/react-native-code-push.d.ts#L76-L95) type for more details.
211+
- **onUpdateSuccess:** Triggered when the update bundle is executed successfully.
212+
- **onUpdateRollback:** Triggered when there is an issue executing the update bundle, leading to a rollback.
213+
- **onDownloadStart:** Triggered when the bundle download begins.
214+
- **onDownloadSuccess:** Triggered when the bundle download completes successfully.
215+
- **onSyncError:** Triggered when an unknown error occurs during the update process. (`CodePush.SyncStatus.UNKNOWN_ERROR` status)
216+
217+
208218
### 5. Configure the CLI Tool
209219

210220
> [!TIP]

0 commit comments

Comments
 (0)