You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: versioned_docs/version-3.0/sdk-installation-ios.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -352,3 +352,21 @@ let configurationBuilder = AdaptyConfiguration
352
352
```
353
353
354
354
See more details on how to finish transactions in the [guide](ios-transaction-management).
355
+
356
+
### Clear data on backup restore
357
+
358
+
When a user restores their app from an iOS backup, the Adapty SDK can detect this and automatically clear its cached data to start fresh. This prevents potential issues with duplicate profiles and ensures clean analytics data.
359
+
360
+
Enable this if you want to ensure a fresh SDK state after backup restoration. Keep it disabled (default) if you want to preserve SDK data when users restore from backups.
361
+
362
+
To enable automatic data clearing on backup restore, set `clearDataOnBackup` to `true`.
363
+
364
+
:::note
365
+
This only clears the SDK's local cache. The user's actual purchases and subscriptions remain safe and are stored with Apple and in Adapty's servers.
0 commit comments