You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From debugging ,I can see it goes to PluginManager#invokeExtensionPointsSequentially and everything looks fine , the variable are correct.
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 ~~
The text was updated successfully, but these errors were encountered:
@JamesChenX Hi , James , it is able to work after I change it to
map:
Mono<OfflineIds> -> Mono<Mono<Result>> (nested, inner Mono never executes)
Here, map just transforms the value but doesn't "flatten" the resulting Mono. So you end up with a Mono<Mono<Result>>, and the inner Mono (containing the afterNotify call) never gets subscribed to.
flatMap:
Mono<OfflineIds> -> Mono<Result> (flattened, inner Mono executes)
flatMap both transforms and "flattens" the resulting Mono. It subscribes to the inner Mono returned by invokeExtensionPointsSequentially, which means the afterNotify actually gets executed.
Hi James, I am implementing the push plugin, here is my flow
From debugging ,I can see it goes to PluginManager#invokeExtensionPointsSequentially and everything looks fine , the variable are correct.
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 ~~
The text was updated successfully, but these errors were encountered: