clevertap-cordova
Advanced tools
Comparing version 2.0.16 to 2.1.0
{ | ||
"name": "clevertap-cordova", | ||
"version": "2.0.16", | ||
"version": "2.1.0", | ||
"description": "CleverTap Plugin for Cordova/PhoneGap", | ||
@@ -5,0 +5,0 @@ "cordova": { |
CleverTap Cordova Plugin | ||
======== | ||
[](https://badge.fury.io/js/clevertap-cordova) | ||
@@ -155,3 +156,10 @@ ## Supported Versions | ||
**NOTE** | ||
Cordova Android 7.+ doesn't support Android Pie (28) libraries and hence to use this plugin, you will have to add one more plugin to your app | ||
cordova plugin add cordova-android-support-gradle-release | ||
This plugin will manage the dependencies to the highest version available in your app and make sure the app builds correctly. CleverTap supports Tabs in the App Inbox but needs the Android design library to be on v28.0.0. Since this is not possible currently on Cordova, Tabs will not be available in this release. Once Cordova starts supporting Android Pie(28), we will be updating our Cordova SDK so that it can support Tabs. | ||
### 2. Set up and register for push notifications and deep links | ||
@@ -158,0 +166,0 @@ |
@@ -62,3 +62,3 @@ /** | ||
# removes unused architectures. | ||
find "$APP_PATH" -name \'CleverTapSDK.framework\' -type d | while read -r FRAMEWORK | ||
find "$APP_PATH" -name \'*.framework\' -type d | while read -r FRAMEWORK | ||
do | ||
@@ -65,0 +65,0 @@ FRAMEWORK_EXECUTABLE_NAME=$(defaults read "$FRAMEWORK/Info.plist" CFBundleExecutable) |
@@ -362,3 +362,30 @@ // Copyright (C) 2015 CleverTap | ||
/**************************** | ||
* Notification Inbox methods | ||
****************************/ | ||
// Initializes the app inbox | ||
CleverTap.prototype.initializeInbox= function () { | ||
cordova.exec(null, null, "CleverTapPlugin", "initializeInbox", []); | ||
} | ||
// Get Unread Inbox Message count for the user | ||
// successCallback = callback function for result | ||
// success calls back returns the total number of unread inbox messages for the user | ||
CleverTap.prototype.getInboxMessageUnreadCount = function (successCallback) { | ||
cordova.exec(successCallback, null, "CleverTapPlugin", "getInboxMessageUnreadCount", []); | ||
} | ||
// Get Inbox Message count for the user | ||
// successCallback = callback function for result | ||
// success calls back returns the total number of inbox messages for the user | ||
CleverTap.prototype.getInboxMessageCount = function (successCallback) { | ||
cordova.exec(successCallback, null, "CleverTapPlugin", "getInboxMessageCount", []); | ||
} | ||
CleverTap.prototype.showInbox = function (styleConfig) { | ||
cordova.exec(null, null, "CleverTapPlugin", "showInbox", [styleConfig]); | ||
} | ||
module.exports = new CleverTap(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
22895332
170
1817
223