Skip to content

completionHandler not called by finish()? #327

@anthonylindev

Description

@anthonylindev

It's my understanding that we must call the completionHandler after handling remote notifications. As specified in the README under the section for finish(), it says:

"If you do not call this method your background remote notifications could be throttled, to read more about it see the above documentation link."

But after this change, #241, it looks like the completionHandler is never actually called by finish().

All finish() does is call this method (onFinishRemoteNotification):

RCT_EXPORT_METHOD(onFinishRemoteNotification:(NSString *)notificationId fetchResult:(UIBackgroundFetchResult)result) { [self.remoteNotificationCallbacks removeObjectForKey:notificationId]; }

which just removes it from the remoteNotificationCallbacks dictionary without calling it.

Is completionHandler actually being called somewhere?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions