I have logging setup in my managed package using a platform-event published immediately with a trigger on that platform event which creates a Log__c record based on the data in the platform event.
This works perfectly well in scratch and developer edition orgs when the managed package is installed. However, when installed in an Enterprise Edition org, which is how we setup subscribers (OEM), the platform event is published but the trigger never runs. Additionally, I setup a flow to run on the platform event and insert a log object but this also never runs. Verified with debug logs setup on the Automated User and Running User. I did check the HourlyPublishedPlatformEvents entry in the limits api /services/data/v53.0/limits and this does get incremented when the platform event is published.
I then setup a generic platform event directly in the subscriber org & cloned the flow to run on that PE and this worked perfectly fine. I'm a bit at a loss of what could be the issue here, as this is only presenting in these types of orgs. Has anyone run into a similar problem or have a suspicion of what could be happening? The platform event is deployed and setup identically to the one I setup directly in the subscriber org