The reason behind not showing a message to another plugin is queueIdentifier
When you redirect to another plugin then <f:flashMessages />
tries to find your current flashMessage queue which would absolutely empty.
I have found a simple way to show flashMessage to another plugin.
TYPO3 version 10.4x
eg. plugin powermail_extended
controller/action
public function createAction(){
$this->addFlashMessage('Some message', '', \TYPO3\CMS\Core\Messaging\AbstractMessage::NOTICE);
$uriBuilder = $this->objectManager->get(\TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::class);
$uri = $uriBuilder
->reset()
->setTargetPageUid($GLOBALS['TSEF']->page['uid'])
->uriFor('form', [], 'Form', 'powermail', 'pi1');
$this->redirectToURI($uri);
}
Another plugin powermail
where you need to show flashMessage.
All you need to change code in your view eg. plugin powermail
ExtendedView/Resources/Private/Templates/Form/Form.html
<f:flashMessages /> // this will show your default current plugin flashMessage
<f:flashMessages queueIdentifier="extbase.flashmessages.tx_powermailextended_pi1" /> // This will show your flashMessage from another plugin eg. powermail_extended
greetings!