Closed marandaneto closed 9 months ago
I can reproduce this locally as well, thanks for the video @cameronehrlich. The app does not need to be in the background nor be opened via a notification, just calling:
NSMutableDictionary *payload = [[NSMutableDictionary alloc] init];
[[PHGPostHog sharedPostHog] handleActionWithIdentifier:(@"identifier")
forRemoteNotification:(payload)];
The reason is that the PHGPostHogIntegration
method does not have the handleActionWithIdentifier
signature and this method is called dynamically here then here.
This probably happens with 3 methods actually:
- (void)receivedRemoteNotification:(NSDictionary *)userInfo;
- (void)failedToRegisterForRemoteNotificationsWithError:(NSError *)error;
- (void)handleActionWithIdentifier:(NSString *)identifier forRemoteNotification:(NSDictionary *)userInfo;
If you call any of them, don't, an easy fix is to just add those methods (empty body) to PHGPayloadManager
but I need to figure out what's supposed to be the implementation first, if any.
@benjackwhite do you have any context about that? what should those methods do?
iOS unrecognized selector sent to instance