CleverTap / CTNotificationService

A simple Notification Service Extension class to add media attachments to iOS 10 rich push notifications
MIT License
18 stars 15 forks source link

Image not showing in list Notification in first open #24

Closed sdiik closed 1 year ago

sdiik commented 2 years ago

Describe the bug

following function to show list notification, first open list notification image not showing but the second open image is showing, maybe my code is not correct, please help me, thanks 🙏

============== this my code to show list notification ==============

private func appInboxAction() {
     CleverTap.sharedInstance()?.initializeInbox(callback: ({ success in
            let messageCount = CleverTap.sharedInstance()?.getInboxMessageCount()
            let unreadCount = CleverTap.sharedInstance()?.getInboxMessageUnreadCount()
            if success {
                let style = CleverTapInboxStyleConfig()
                style.title = "Notifications"
                style.navigationTintColor = UIColor.primary

                if let inboxController = CleverTap.sharedInstance()?.newInboxViewController(with: style, andDelegate: self) {
                    let navigationController = UINavigationController.init(rootViewController: inboxController)
                    self.present(navigationController, animated: true, completion: nil)
                }
            }
        }))
 }

Screenshots ============== first ==============

Screen Shot 2022-01-18 at 15 05 54

============== seconds ==============

Screen Shot 2022-01-18 at 15 06 08
rabindrachhachan commented 2 years ago

@sdiik Did you able to get it resolved?

akashvercetti commented 1 year ago

Closing this due to inactivity. Please update to the latest version and feel free to reopen if the issue persists.