Skip to content

Commit

Permalink
Merge pull request #225 from CleverTap/develop
Browse files Browse the repository at this point in the history
Release v2.7.0
  • Loading branch information
AishwaryaNanna authored Aug 2, 2023
2 parents cb0e910 + 558f73c commit b58c0c1
Show file tree
Hide file tree
Showing 275 changed files with 9,267 additions and 10,118 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*.xcuserstate
Samples/Cordova/ExampleProject/platforms/android/.idea/
Samples/Cordova/ExampleProject/plugins/
Samples/Cordova/ExampleProject/platforms/android/.gradle/
Samples/Cordova/ExampleProject/platforms/android/build/
Samples/Cordova/ExampleProject/platforms/android/CordovaLib/build/
Expand Down
63 changes: 63 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,68 @@
Change Log
==========
Version 2.7.0 *(August 2, 2023)*
-------------------------------------------
#### New Features

**Android specific**
* Supports [CleverTap Android SDK v5.1.0](https://github.com/CleverTap/clevertap-android-sdk/releases/tag/corev5.1.0_ptv1.1.0).
* Supports [cordova android 12.0.0](https://cordova.apache.org/announcements/2023/05/22/cordova-android-12.0.0.html)
* `deleteInboxMessagesForIds(messageIDs)` is now supported in Android as well.
* New callback `onCleverTapInAppNotificationShow(JSONObject)`
* **Behavioral change of `onCleverTapInboxItemClick`**:
- Previously, the callback was raised when the App Inbox Item is clicked.
- Now, it is also raised when the App Inbox button and Item is clicked.


**iOS specific**
* Supports [CleverTap iOS SDK v5.1.2](https://github.com/CleverTap/clevertap-ios-sdk/releases/tag/5.1.2).
* Supports [cordova ios 7.0.0](https://cordova.apache.org/announcements/2023/07/10/cordova-ios-7.0.0.html)

**Common for both android and iOS**
* Adds below new public APIs for supporting [Android 13 notification runtime permission](https://developer.android.com/develop/ui/views/notifications/notification-permission)
* `isPushPermissionGranted(successCallback)` [Usage can be found here](docs/pushprimer.md#get-the-push-notification-permission-status)
* `promptPushPrimer(JSONObject)` [Usage can be found here](docs/pushprimer.md#push-primer-using-half-interstitial-local-in-app)
* `promptForPushPermission(boolean)` [Usage can be found here](docs/pushprimer.md#prompt-the-notification-permission-dialog-without-push-primer)
* New callback `onCleverTapPushPermissionResponseReceived` available which returns after user Allows/Denies notification permission [Usage can be found here](docs/pushprimer.md#available-callbacks-for-push-primer)
* Adds support for Remote Config Variables. Please refer to the [Variables.md](docs/Variables.md) file to
read more on how to integrate this to your app.
* Adds new API, `markReadInboxMessagesForIds(messageIDs)` to mark read an array of
Inbox Messages.
* Adds new API, `dismissInbox()` to dismiss the App Inbox.

#### API Changes

* **Deprecated:** The following methods and callbacks related to Product Config and Feature Flags have
been marked as deprecated in this release, instead use new remote config variables feature. These
methods and callbacks will be removed in the future versions with prior notice.
* Product config
- `setDefaultsMap()`
- `fetch()`
- `fetchWithMinimumFetchIntervalInSeconds()`
- `activate()`
- `fetchAndActivate()`
- `setMinimumFetchIntervalInSeconds()`
- `getLastFetchTimeStampInMillis()`
- `getString()`
- `getBoolean()`
- `getLong()`
- `getDouble()`
- `reset()`
- callback `onCleverTapProductConfigDidInitialize`
- callback `onCleverTapProductConfigDidFetch`
- callback `onCleverTapProductConfigDidActivate`

* Feature flags
- `getFeatureFlag()`
- callback `onCleverTapFeatureFlagsDidUpdate`

#### Breaking API Changes

* **Return value change of `onCleverTapInboxItemClick` callback in android and `messageDidSelect` callback in iOS**: callback returns `JSONObject` with below entries
- `data` corresponds to the payload of clicked inbox item
- The `contentPageIndex` corresponds to the page index of the content, which ranges from 0 to the total number of pages for carousel templates. For non-carousel templates, the value is always 0, as they only have one page of content.
- The `buttonIndex` represents the index of the App Inbox button clicked (0, 1, or 2). A value of -1 indicates the App Inbox item is clicked.

Version 2.6.2 *(April 18, 2023)*
-------------------------------------------
- Fixed compilation errors in xcode 14.3+ in iOS.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ To get started, sign up [here](https://clevertap.com/live-product-demo/).

## ✅ Supported Versions

- [CleverTap Android SDK version 4.6.6](https://github.com/CleverTap/clevertap-android-sdk/releases/tag/corev4.6.6)
- [CleverTap iOS SDK version 4.2.2](https://github.com/CleverTap/clevertap-ios-sdk/releases/tag/4.2.2)
- [CleverTap Android SDK version 5.1.0](https://github.com/CleverTap/clevertap-android-sdk/releases/tag/corev5.1.0_ptv1.1.0)
- [CleverTap iOS SDK version 5.1.2](https://github.com/CleverTap/clevertap-ios-sdk/releases/tag/5.1.2)

## 🚀 Installation and Quick Start

Expand Down
184 changes: 138 additions & 46 deletions Samples/Cordova/ExampleProject/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b58c0c1

Please sign in to comment.