This guide will help you upgrade your application(s) and platform(s) from CometChat v2 to v3. The upgrade process is simple, since there only a few code-level changes required.Here’s what you need to do:
Go to the dashboard and make a migration request for your application(s)
Mark the migration process as complete in the dashboard. We recommend 30 days to complete the migration process
After you begin the migration process, there’s a window of time during which your production application will be compatible with both v2 and v3 SDKs and APIs.During this phase, real-time events (receipts, typing indicator, live reactions, transient messages, and user presence indicators) won’t work cross-version. This means that users with clients using the old v2 SDK won’t get real-time events from users on clients supporting the new v3 SDK, and vice-versa. However, receipts and presence information are still updated in our database, so they’ll still be available when fetched via the API.After you finish making any required changes to your application and mark the migration as complete, your app will only be compatible with v3 SDKs and APIs. Provided all clients have been updated to v3, all real-time events will be supported once more.Marking the migration as finished is left to your discretion; however, we strongly recommend that after initiating migration, you complete your changes and finish the migration within 30 days.
In Settings, select Migrate App to v3 tab. Then, click on the “Request app migration to v3” button as shown below. Once your request is sent, our team will get in touch with you and manually transition the app to a “migrating” status.
Once the app status is set to migrating, you’ll be ready to begin making platform-specific migration changes. You’ll know your app is migrating when you see the following screen in the migration tab in your settings page:
You may have to update a few critical methods in your application code, depending on your platform. Please refer to the links below for platform-specific upgrade guides.
JavaScript: Upgrading from v2iOS: Upgrading from v2Android: Upgrading from v3React Native: Upgrading from v2Ionic Cordova Capacitor: Upgrading from v2Note: if you mark your migration as complete without following the specified upgrade guide fully, your application may become stuck in a broken state, with out-of-sync SDK / API and application versions unable to communicate properly. If this happens, contact support.
This step is only applicable if you are using CometChat Rest APIs. Go to Rest API documentation Make sure you have selected V3. Select and update the API URLs applicable to your implementation.
Per app just the code changes should not take more than 30 mins.
How can I ask for help if I am stuck at some stage?
You can reach out to our customer support team for such queries.
What is the transition time you suggest?
It depends on how much time it takes for clients using the old v2 SDK to update to v3 SDK.
Will there be any regression during transition?
During transition, real-time events (receipts, typing indicator, live reactions, transient messages, and user presence indicators) won’t work cross-version. This means that users with clients using the old v2 SDK won’t get real-time events from users on clients supporting the new v3 SDK, and vice-versa. However, receipts and presence information are still updated in our database, so they’ll still be available when fetched via the API.
What all checks do I need to perform before marking V3 complete?
Go to the dashboard and make a migration request for your application(s)