-
@Deprecated(since = 4.3.0) public class CTPushNotificationReceiver extends BroadcastReceiver
Android 12 prevents components that start other activities inside services or broadcast receivers when notification is opened. If this requirement is not met, the system will prevent the activity from starting. As a part of these Android OS changes, CleverTap will be deprecating the CTPushNotificationReceiver class from v4.3.0 CTPushNotificationReceiver was used to handle Push notifications with deep links pointing inside the app or third-party applications/URLs. The receiver would first raise the Notification Clicked event and then open the Activity as mentioned in the deep link. Android 12 restricts usage of notification trampolines, meaning that notification must start the activity directly on the notification tap. Tracking of Notification Clicked events now happens in the CleverTapAPI }instance registered by com.clevertap.android.sdk.ActivityLifecycleCallback. The push payload is attached as an extra to the notification intent and processed when the notification is tapped. If the deep link is to a third-party application or a URL, then the Notification Clicked event will NO LONGER be tracked.
-
-
Method Summary
-
Methods inherited from class android.content.BroadcastReceiver
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, getSentFromPackage, getSentFromUid, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, onReceive, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-