Skip to content

Image is not showing in iOS Rich push notification #409

@kuldeepAlG

Description

@kuldeepAlG

Image is not coming ios but its coming fine on the android side
image in sending in push notification from clevertap dashboard: https://db7hsdc8829us.cloudfront.net/dist/1712904832/i/13ca46afbff14e4c83711a78a4cd5145.jpeg
I have followed the exact same steps mentioned in the link.
https://github.com/CleverTap/clevertap-react-native/blob/HEAD/docs/iospushtemplates.md

Changes i have done in my:

  1. Podfile
    Added the below code at the last of the podfile

target 'NotificationService' do
pod "CTNotificationService", :modular_headers => true
end

  1. NotificationService.h

#import <CTNotificationService/CTNotificationService.h>
#import "UIKit/UIKit.h"

@interface NotificationService : CTNotificationServiceExtension
@EnD

  1. NotificationService.m
    I have removed all the auto generated code and added only below code

#import "NotificationService.h"

@implementation NotificationService

  • (void)didReceiveNotificationRequest:(UNNotificationRequest *)request withContentHandler:(void (^)(UNNotificationContent * _Nonnull))contentHandler {
    [super didReceiveNotificationRequest:request withContentHandler:contentHandler];
    }

@EnD

  1. NotificationService/info.plist

I have replaced the value of NSExtensionPrincipalClass to CTNotificationServiceExtension and again reverted it but non of these is working

Can anyone guide me, if im missing anything?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions