-
Notifications
You must be signed in to change notification settings - Fork 71
Description
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:
- Podfile
Added the below code at the last of the podfile
target 'NotificationService' do
pod "CTNotificationService", :modular_headers => true
end
- NotificationService.h
#import <CTNotificationService/CTNotificationService.h>
#import "UIKit/UIKit.h"@interface NotificationService : CTNotificationServiceExtension
@EnD
- 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];
}
- 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?