Skip to content

Showing there is no completion handler with notification id even if finish is called #216

@vishgoel007

Description

@vishgoel007
import PushNotificationIOS from "@react-native-community/push-notification-ios";

componentDidMount() {
    PushNotificationIOS.addEventListener("notification", this.onRemoteNotification);
}

  onRemoteNotification = (notification) => {

    let data = notification.getData();

    if (data) {
     // ...
    }
    notification.finish(PushNotificationIOS.FetchResult.NoData);
  };

I'm using remote notification listener like this and onRemoteNotification called when a remote notification come but when i trigger multiple notifications manually onRemoteNotification stopped calling for sometime and then start calling after like 10-15 minutes.
In xcode i'm getting this There is no completion handler with notification id: 4A0009xxxx-xxx but i have called finish function at the end of onRemoteNotification, so why i'm getting this no completion handler warning ?
and is it because of this no completion handler warning onRemoteNotification stopped calling for sometime ?

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