Skip to content

Commit 0465f3d

Browse files
author
cpandya25
committed
Update Troubleshooting page in iOS.
Update Troubleshooting page in iOS.
1 parent feb91bb commit 0465f3d

1 file changed

Lines changed: 8 additions & 29 deletions

File tree

docs/sdks/ios/troubleshooting.md

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -62,35 +62,14 @@ Initializing the CleverPush SDK multiple times in your application can break the
6262

6363
We **do not recommend** initializing the SDK more than once, as it may lead to:
6464

65-
### Core Functionality Issues:
66-
- **Duplicate notification handling** - Notifications may be processed multiple times
67-
- **Incorrect subscription states** - Subscription ID and status may become inconsistent
68-
- **Memory leaks and performance issues** - Multiple SDK instances consuming unnecessary resources
69-
- **Conflicts in internal SDK state management** - SDK's internal state will be overwritten
70-
71-
### Callback Issues:
72-
- **Notification callbacks may not work properly** - `handleNotificationReceived`, `handleNotificationOpened`, and `handleSubscribed` callbacks may be called multiple times or not at all
73-
- **Initialization callback failures** - `handleInitialized` callback may return incorrect results
74-
- **App Banner callbacks disrupted** - `setAppBannerOpenedCallback` and banner display callbacks may not trigger as expected
75-
- **Topics change listener issues** - `setTopicsChangedListener` may not function correctly
76-
77-
### Feature-Specific Problems:
78-
- **App Banners** - May fail to display or display multiple times, banner targeting and event tracking may break
79-
- **Chat View** - URL opened callbacks and subscribe callbacks may not work properly
80-
- **Inbox View** - Notification click callbacks may fail or trigger multiple times
81-
- **Stories Widget** - Story opened callbacks and navigation may malfunction
82-
- **Live Activities** - Activity registration and token management may fail
83-
- **Event Tracking** - Events may be tracked multiple times or not tracked at all
84-
- **Deep Links** - Universal links and custom URL scheme handling may break
85-
86-
### Data Synchronization Issues:
87-
- **Tags and Attributes** - Tag and attribute management may become inconsistent
88-
- **Topics** - Topic subscriptions may not sync properly
89-
- **Badge Count** - Badge counting logic may fail, leading to incorrect badge numbers
90-
- **Notification Storage** - Local notification storage via App Groups may become corrupted
91-
92-
### Best Practice:
93-
Make sure to initialize the SDK **only once** in your app's lifecycle, typically in your AppDelegate's `application(_:didFinishLaunchingWithOptions:)` method. Avoid calling the initialization method in multiple places, view controllers, or lifecycle methods.
65+
- Duplicate notification handling and incorrect subscription states
66+
- Callbacks may not work properly or be called multiple times (notifications, banners, initialization)
67+
- App Banners, Stories, Chat, Inbox, and Live Activities may malfunction
68+
- Event tracking and deep links may not work as expected
69+
- Tags, attributes, topics, and badge count may become inconsistent
70+
- Memory leaks and performance issues
71+
72+
**Best Practice:** Initialize the SDK **only once** in your application. Avoid calling the initialization method in multiple places or view controllers.
9473

9574
# Silent Notification Limitations and Restrictions for iOS
9675

0 commit comments

Comments
 (0)