File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
LeanplumSDK/LeanplumSDK/ClassesSwift/Migration Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import Foundation
1313 // Using NSNumber since Optional Bool cannot be represented in Objective-C
1414 @objc public var openDeepLinksInForeground : NSNumber ?
1515 @objc public var handleCleverTapNotificationBlock : LeanplumHandleCleverTapNotificationBlock ?
16- private ( set ) var handlePushNotificationFromCleverTap = false
16+
1717
1818 enum NotificationEvent : String , CustomStringConvertible {
1919 case opened = " Open "
@@ -33,16 +33,6 @@ import Foundation
3333 // If the app is launched from notification and CT instance has already been created,
3434 // CT will handle the notification from their UIApplication didFinishLaunchingNotification observer
3535 if fromLaunch && MigrationManager . shared. hasLaunched {
36- // If the app is using AppDelegate only, push notification at app launched will
37- // be handled from CleverTap. Setting `handlePushNotificationFromCleverTap` to true
38- // here ensures that app is launched from killed state and using AppDelegate file only.
39- handlePushNotificationFromCleverTap = true
40- return
41- }
42-
43- if handlePushNotificationFromCleverTap && MigrationManager . shared. hasLaunched {
44- Log . info ( " [Wrapper] Push Notification will be handled from CleverTap: \( userInfo) " )
45- handlePushNotificationFromCleverTap = false
4636 return
4737 }
4838
You can’t perform that action at this time.
0 commit comments