clevertap-react-native icon indicating copy to clipboard operation
clevertap-react-native copied to clipboard

Image is not showing in iOS Rich push notification

Open kuldeepAlG opened this issue 5 months ago • 9 comments

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?

kuldeepAlG avatar Sep 03 '24 15:09 kuldeepAlG