Skip to content

[Push Plugin] Not able to invoke afterNotify Method  #1590

@J-artz

Description

@J-artz

Hi James, I am implementing the push plugin, here is my flow

  1. push plugin successfully loaded. NotificationPusher#Start( ) breakpoint can be hit.
  2. change the code below so it will propagate to notifyRelatedUsersOfAction0#afterNotify
    default Mono<RequestHandlerResult> beforeNotify(
            @NotNull RequestHandlerResult result,
            @NotNull Long requesterId,
            @NotNull DeviceType requesterDevice) {
        return Mono.just(result);
    }
  1. Able to hit the breakpoint in
return mono
                .map(offlineRecipientIds -> pluginManager.invokeExtensionPointsSequentially(
                        RequestHandlerResultHandler.class,
                        RESULT_AFTER_NOTIFY_METHOD,
                        result,
  1. From debugging ,I can see it goes to PluginManager#invokeExtensionPointsSequentially and everything looks fine , the variable are correct.
    image
    image

  2. I expect it will go to the push plugin NotificationPusher#afterNotify( ) but it not able to hit the endpoint I set.

I am using the code provided in official push plugin and my step seems correct, but I wonder why it never invoke the afterNotify( ). Any help is appreciated ~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: confirmingConfirming whether the issue is a bug or can be a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions