diff --git a/CHANGELOG.md b/CHANGELOG.md index f73b922ad..90361ef84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -223,7 +223,7 @@ * Use v3.8.2 * Adds support for Product Config and Feature Flag as a part of Product Experiences feature * Fixed InApp center alignment issue for tablets -* Adds support for custom handling payload when using Push Amplification. +* Adds support for custom handling payload when using Pull Notifications. * Other bug fixes ### Version 3.7.2 (March 27, 2020) @@ -264,7 +264,7 @@ * Adds support for deep link query parameters in InApps. * Deprecated GCM. * Deprecated EventHandler, SessionHandler and DataHandler classes. -* Workaround for below Oreo Android OS bug causing ANRs while using Push Amplification. +* Workaround for below Oreo Android OS bug causing ANRs while using Pull Notifications. * Bug fixes and performance improvements ### Version 3.5.1 (May 24, 2019) @@ -294,7 +294,7 @@ ### Version 3.4.0 (January 14, 2019) * Adds support for App Inbox -* Adds support for Push Amplification +* Adds support for Pull Notifications * Workaround for Android O orientation bug in Native InApps * Fixes a bug which led to ANR on 2G network diff --git a/clevertap-core/src/main/java/com/clevertap/android/sdk/CleverTapAPI.java b/clevertap-core/src/main/java/com/clevertap/android/sdk/CleverTapAPI.java index 7ee4572d8..c2b6522f6 100644 --- a/clevertap-core/src/main/java/com/clevertap/android/sdk/CleverTapAPI.java +++ b/clevertap-core/src/main/java/com/clevertap/android/sdk/CleverTapAPI.java @@ -272,10 +272,10 @@ CleverTapAPI getGlobalInstance(Context context, String _accountId) { } /** - * Pass Push Notification Payload to CleverTap for smooth functioning of Push Amplification + * Pass Push Notification Payload to CleverTap for smooth functioning of Pull Notifications * * @param context - Application Context - * @param extras - Bundle received via FCM/Push Amplification + * @param extras - Bundle received via FCM/Pull Notifications */ @SuppressWarnings("unused") public static void processPushNotification(Context context, Bundle extras) { diff --git a/clevertap-core/src/main/java/com/clevertap/android/sdk/interfaces/IPushAmpHandler.java b/clevertap-core/src/main/java/com/clevertap/android/sdk/interfaces/IPushAmpHandler.java index 5f133c523..943e7c94d 100644 --- a/clevertap-core/src/main/java/com/clevertap/android/sdk/interfaces/IPushAmpHandler.java +++ b/clevertap-core/src/main/java/com/clevertap/android/sdk/interfaces/IPushAmpHandler.java @@ -4,7 +4,7 @@ import androidx.annotation.NonNull; /** - * Generic Interface to handle push amplification for different types of notification messages, received from + * Generic Interface to handle Pull Notifications for different types of notification messages, received from * respective services or receivers(ex. FirebaseMessagingService). *

* Implement this interface if you want to support push amp for different types of notification messages. @@ -13,7 +13,7 @@ public interface IPushAmpHandler { /** - * Processes notification message for push amplification + * Processes notification message for Pull Notifications * @param context application context * @param message notification message received from cloud messaging provider like firebase,xiaomi,huawei etc. */ diff --git a/clevertap-core/src/main/java/com/clevertap/android/sdk/pushnotification/PushProviders.java b/clevertap-core/src/main/java/com/clevertap/android/sdk/pushnotification/PushProviders.java index 924ea4f34..66e0317b3 100644 --- a/clevertap-core/src/main/java/com/clevertap/android/sdk/pushnotification/PushProviders.java +++ b/clevertap-core/src/main/java/com/clevertap/android/sdk/pushnotification/PushProviders.java @@ -365,9 +365,9 @@ public void onTokenRefresh() { } /** - * Stores silent push notification in DB for smooth working of Push Amplification + * Stores silent push notification in DB for smooth working of Pull Notifications * Background Job Service and also stores wzrk_pid to the DB to avoid duplication of Push - * Notifications from Push Amplification. + * Notifications from Pull Notifications. * * @param extras - Bundle */ diff --git a/clevertap-core/src/main/java/com/clevertap/android/sdk/pushnotification/fcm/CTFcmMessageHandler.java b/clevertap-core/src/main/java/com/clevertap/android/sdk/pushnotification/fcm/CTFcmMessageHandler.java index f64a336e1..7dcb3037e 100644 --- a/clevertap-core/src/main/java/com/clevertap/android/sdk/pushnotification/fcm/CTFcmMessageHandler.java +++ b/clevertap-core/src/main/java/com/clevertap/android/sdk/pushnotification/fcm/CTFcmMessageHandler.java @@ -85,7 +85,7 @@ public boolean onNewToken(final Context applicationContext, final String token) * {@inheritDoc} *

* Use this method if you are rendering notification by your own and wants to support your custom rendered - * notification for push amplification + * notification for Pull Notifications */ @Override public void processPushAmp(final Context context, @NonNull final RemoteMessage message) { diff --git a/clevertap-core/src/main/java/com/clevertap/android/sdk/response/PushAmpResponse.java b/clevertap-core/src/main/java/com/clevertap/android/sdk/response/PushAmpResponse.java index d4d354ba1..31a3066f0 100644 --- a/clevertap-core/src/main/java/com/clevertap/android/sdk/response/PushAmpResponse.java +++ b/clevertap-core/src/main/java/com/clevertap/android/sdk/response/PushAmpResponse.java @@ -47,7 +47,7 @@ public PushAmpResponse( @Override public void processResponse(final JSONObject response, final String stringBody, final Context context) { - //Handle Push Amplification response + //Handle Pull Notifications response if (config.isAnalyticsOnly()) { logger.verbose(config.getAccountId(), "CleverTap instance is configured to analytics only, not processing push amp response"); diff --git a/clevertap-hms/src/main/java/com/clevertap/android/hms/CTHmsMessageHandler.java b/clevertap-hms/src/main/java/com/clevertap/android/hms/CTHmsMessageHandler.java index c135a72d8..a613a178f 100644 --- a/clevertap-hms/src/main/java/com/clevertap/android/hms/CTHmsMessageHandler.java +++ b/clevertap-hms/src/main/java/com/clevertap/android/hms/CTHmsMessageHandler.java @@ -81,7 +81,7 @@ public boolean onNewToken(Context context, final String token) { * {@inheritDoc} *

* Use this method if you are rendering notification by your own and wants to support your custom rendered - * notification for push amplification + * notification for Pull Notifications */ @Override public void processPushAmp(final Context context, @NonNull final RemoteMessage message) { diff --git a/clevertap-xps/src/main/java/com/clevertap/android/xps/CTXiaomiMessageHandler.java b/clevertap-xps/src/main/java/com/clevertap/android/xps/CTXiaomiMessageHandler.java index 6852dad14..5fc503ce6 100644 --- a/clevertap-xps/src/main/java/com/clevertap/android/xps/CTXiaomiMessageHandler.java +++ b/clevertap-xps/src/main/java/com/clevertap/android/xps/CTXiaomiMessageHandler.java @@ -116,7 +116,7 @@ int onReceiveRegisterResult(Context context, MiPushCommandMessage miPushCommandM * {@inheritDoc} *

* Use this method if you are rendering notification by your own and wants to support your custom rendered - * notification for push amplification + * notification for Pull Notifications */ @Override public void processPushAmp(final Context context, @NonNull final MiPushMessage message) { diff --git a/docs/CTCORECHANGELOG.md b/docs/CTCORECHANGELOG.md index 290ccaf8c..c9fdaa909 100644 --- a/docs/CTCORECHANGELOG.md +++ b/docs/CTCORECHANGELOG.md @@ -8,7 +8,7 @@ * Upgrades AGP to 8.2.2 for building the SDK and adds related consumer proguard rules * Deprecates Xiaomi public methods as we are sunsetting SDK. Details [here](https://dev.mi.com/distribute/doc/details?pId=1555). * Adds Accessibility ids for UI components of SDK -* Migrates JobScheduler to WorkManager for Push Amplification. +* Migrates JobScheduler to WorkManager for Pull Notifications. #### Breaking API Changes @@ -299,7 +299,7 @@ Please remove the integrated Rendermax SDK before you upgrade to Android SDK v5. Note : If you are facing `ClassNotFoundException` "org.jacoco.agent.rt.internal_28bab1d.Offline" after updating to 4.5.0, Please update the SDK to v4.5.1 ### Version 4.4.0 (December 20, 2021) -* Adds below new public APIs for smooth and easy integration of Custom Android Push Notifications Handling(FCM),Custom Push Amplification Handling and Push Templates +* Adds below new public APIs for smooth and easy integration of Custom Android Push Notifications Handling(FCM),Custom Pull Notifications Handling and Push Templates * `CTFcmMessageHandler().createNotification(applicationContext, message)` * `CTFcmMessageHandler().processPushAmp(applicationContext, message)` * `CleverTapAPI.setNotificationHandler(notificationHandler)` diff --git a/docs/CTHUAWEIPUSHCHANGELOG.md b/docs/CTHUAWEIPUSHCHANGELOG.md index ef80cd049..a9488f878 100644 --- a/docs/CTHUAWEIPUSHCHANGELOG.md +++ b/docs/CTHUAWEIPUSHCHANGELOG.md @@ -20,7 +20,7 @@ * Updated Huawei Push SDK to v6.3.0.304 ### Version 1.2.0 (December 20, 2021) -* Adds below new public APIs for smooth and easy integration of Custom Android Push Notifications Handling(HMS),Custom Push Amplification Handling and Push Templates. +* Adds below new public APIs for smooth and easy integration of Custom Android Push Notifications Handling(HMS),Custom Pull Notifications Handling and Push Templates. * `CTHmsMessageHandler().createNotification(applicationContext,message)` * `CTHmsMessageHandler().processPushAmp(applicationContext,message)` * Supports CleverTap Android SDK v4.4.0 diff --git a/docs/CTPUSHTEMPLATESCHANGELOG.md b/docs/CTPUSHTEMPLATESCHANGELOG.md index 9b806cfd6..60849049c 100644 --- a/docs/CTPUSHTEMPLATESCHANGELOG.md +++ b/docs/CTPUSHTEMPLATESCHANGELOG.md @@ -93,7 +93,7 @@ ### Version 1.0.0 (December 20, 2021) * Stable release! 🎉 * Supports Xiaomi, Huawei notification messages out of the box -* Supports Push Amplification out of the box +* Supports Pull Notifications out of the box * Supports Android 12 * Supports CleverTap Android SDK v4.4.0 diff --git a/docs/CTV4CHANGES.md b/docs/CTV4CHANGES.md index bacba9461..52297c67d 100644 --- a/docs/CTV4CHANGES.md +++ b/docs/CTV4CHANGES.md @@ -11,7 +11,7 @@ * [Breaking changes](#%EF%B8%8F-breaking-changes) * [Firebase Messaging changes](#-firebase-messaging-changes) * [Push Notification changes](#-push-notification-changes) - * [Push Amplification changes](#-push-amplification-changes) + * [Pull Notifications changes](#-push-amplification-changes) * [Questions](#-questions) ## ♻️ Migration @@ -149,7 +149,7 @@ New `AndroidManifest.xml` entries `com.clevertap.android.sdk.NotificationInfo` has been renamed to `com.clevertap.android.sdk.pushnotification.NotificationInfo` -### 📲 Push Amplification changes +### 📲 Pull Notifications changes The following `AndroidManifest.xml` entries are no longer needed to be added - @@ -170,7 +170,7 @@ The following `AndroidManifest.xml` entries are no longer needed to be added - android:exported="false"/> ``` -To enable Push Amplification only the following entry is required in the `AndroidManifest.xml` file - +To enable Pull Notifications only the following entry is required in the `AndroidManifest.xml` file - ```xml * For Android 6.0 or higher due to [Doze-Standby](https://developer.android.com/training/monitoring-device-state/doze-standby) and For Android 9.0 or higher due to [App standby buckets](https://developer.android.com/topic/performance/appstandby) network connectivity for apps gets deferred by some time as described [here in Network Column](https://developer.android.com/topic/performance/power/power-details) which prevents SDK to connect to CleverTap servers for raising notifications. -7. When minifying is enabled for gradle wrapper 8.0+ and android gradle plugin 8.0.0+, R8 reports missing classes as errors (previously those were warnings) and the build fails. +7. Why does the build fail for an app when minifying is enabled for gradle wrapper 8.0+ and android gradle plugin 8.0.0+? - * Upgrade to `com.clevertap.android:clevertap-android-sdk` v6.1.0 and `com.clevertap.android:clevertap-hms-sdk` v1.3.4 to fix this issue. * This occurs due to change in behaviour in the AGP` When R8 traces the program it will try to handle all the classes, methods and fields that it finds in the part of the program it considers live. Earlier during this tracing, it threw a warning which allowed building the apk. But these are now converted into errors. Details [here](https://developer.android.com/build/releases/past-releases/agp-8-0-0-release-notes) + * Upgrade to `com.clevertap.android:clevertap-android-sdk` v6.1.0 and `com.clevertap.android:clevertap-hms-sdk` v1.3.4 to fix this issue. \ No newline at end of file diff --git a/templates/CTCORECHANGELOG.md b/templates/CTCORECHANGELOG.md index 290ccaf8c..c9fdaa909 100644 --- a/templates/CTCORECHANGELOG.md +++ b/templates/CTCORECHANGELOG.md @@ -8,7 +8,7 @@ * Upgrades AGP to 8.2.2 for building the SDK and adds related consumer proguard rules * Deprecates Xiaomi public methods as we are sunsetting SDK. Details [here](https://dev.mi.com/distribute/doc/details?pId=1555). * Adds Accessibility ids for UI components of SDK -* Migrates JobScheduler to WorkManager for Push Amplification. +* Migrates JobScheduler to WorkManager for Pull Notifications. #### Breaking API Changes @@ -299,7 +299,7 @@ Please remove the integrated Rendermax SDK before you upgrade to Android SDK v5. Note : If you are facing `ClassNotFoundException` "org.jacoco.agent.rt.internal_28bab1d.Offline" after updating to 4.5.0, Please update the SDK to v4.5.1 ### Version 4.4.0 (December 20, 2021) -* Adds below new public APIs for smooth and easy integration of Custom Android Push Notifications Handling(FCM),Custom Push Amplification Handling and Push Templates +* Adds below new public APIs for smooth and easy integration of Custom Android Push Notifications Handling(FCM),Custom Pull Notifications Handling and Push Templates * `CTFcmMessageHandler().createNotification(applicationContext, message)` * `CTFcmMessageHandler().processPushAmp(applicationContext, message)` * `CleverTapAPI.setNotificationHandler(notificationHandler)` diff --git a/templates/CTHUAWEIPUSHCHANGELOG.md b/templates/CTHUAWEIPUSHCHANGELOG.md index ef80cd049..a9488f878 100644 --- a/templates/CTHUAWEIPUSHCHANGELOG.md +++ b/templates/CTHUAWEIPUSHCHANGELOG.md @@ -20,7 +20,7 @@ * Updated Huawei Push SDK to v6.3.0.304 ### Version 1.2.0 (December 20, 2021) -* Adds below new public APIs for smooth and easy integration of Custom Android Push Notifications Handling(HMS),Custom Push Amplification Handling and Push Templates. +* Adds below new public APIs for smooth and easy integration of Custom Android Push Notifications Handling(HMS),Custom Pull Notifications Handling and Push Templates. * `CTHmsMessageHandler().createNotification(applicationContext,message)` * `CTHmsMessageHandler().processPushAmp(applicationContext,message)` * Supports CleverTap Android SDK v4.4.0 diff --git a/templates/CTPUSHTEMPLATESCHANGELOG.md b/templates/CTPUSHTEMPLATESCHANGELOG.md index 9b806cfd6..60849049c 100644 --- a/templates/CTPUSHTEMPLATESCHANGELOG.md +++ b/templates/CTPUSHTEMPLATESCHANGELOG.md @@ -93,7 +93,7 @@ ### Version 1.0.0 (December 20, 2021) * Stable release! 🎉 * Supports Xiaomi, Huawei notification messages out of the box -* Supports Push Amplification out of the box +* Supports Pull Notifications out of the box * Supports Android 12 * Supports CleverTap Android SDK v4.4.0 diff --git a/templates/CTV4CHANGES.md b/templates/CTV4CHANGES.md index bacba9461..52297c67d 100644 --- a/templates/CTV4CHANGES.md +++ b/templates/CTV4CHANGES.md @@ -11,7 +11,7 @@ * [Breaking changes](#%EF%B8%8F-breaking-changes) * [Firebase Messaging changes](#-firebase-messaging-changes) * [Push Notification changes](#-push-notification-changes) - * [Push Amplification changes](#-push-amplification-changes) + * [Pull Notifications changes](#-push-amplification-changes) * [Questions](#-questions) ## ♻️ Migration @@ -149,7 +149,7 @@ New `AndroidManifest.xml` entries `com.clevertap.android.sdk.NotificationInfo` has been renamed to `com.clevertap.android.sdk.pushnotification.NotificationInfo` -### 📲 Push Amplification changes +### 📲 Pull Notifications changes The following `AndroidManifest.xml` entries are no longer needed to be added - @@ -170,7 +170,7 @@ The following `AndroidManifest.xml` entries are no longer needed to be added - android:exported="false"/> ``` -To enable Push Amplification only the following entry is required in the `AndroidManifest.xml` file - +To enable Pull Notifications only the following entry is required in the `AndroidManifest.xml` file - ```xml * For Android 6.0 or higher due to [Doze-Standby](https://developer.android.com/training/monitoring-device-state/doze-standby) and For Android 9.0 or higher due to [App standby buckets](https://developer.android.com/topic/performance/appstandby) network connectivity for apps gets deferred by some time as described [here in Network Column](https://developer.android.com/topic/performance/power/power-details) which prevents SDK to connect to CleverTap servers for raising notifications. -7. When minifying is enabled for gradle wrapper 8.0+ and android gradle plugin 8.0.0+, R8 reports missing classes as errors (previously those were warnings) and the build fails. +7. Why does the build fail for an app when minifying is enabled for gradle wrapper 8.0+ and android gradle plugin 8.0.0+? - * Upgrade to `com.clevertap.android:clevertap-android-sdk` v6.1.0 and `com.clevertap.android:clevertap-hms-sdk` v1.3.4 to fix this issue. * This occurs due to change in behaviour in the AGP` When R8 traces the program it will try to handle all the classes, methods and fields that it finds in the part of the program it considers live. Earlier during this tracing, it threw a warning which allowed building the apk. But these are now converted into errors. Details [here](https://developer.android.com/build/releases/past-releases/agp-8-0-0-release-notes) + * Upgrade to `com.clevertap.android:clevertap-android-sdk` v6.1.0 and `com.clevertap.android:clevertap-hms-sdk` v1.3.4 to fix this issue. \ No newline at end of file