this is a follow up question to Platform Event - lightning:empApi. however in my case the component is not working in a standalone Lightning App, but it is working when implementing it on the Lightning Home Page for example. That is the difference to the question above in which Anshul Agrawal mentioned that this empApi is working in a standalone app.
Does anybody has an idea why that might be the case? Based on the empApi specification i expect it to be possible to embed a Lightning Component using the empApi component whithin a standard Lightning App - what is it i am missing?
Background: Based on the explanation provided in https://trailhead.salesforce.com/en/content/learn/projects/workshop-platform-events i built a custom component to subscribe to a Platform Event Channel and print the Result to the Console (for now). I embedded this Component in a Custom Lightning Application, as the use case will require the users to navigate to this standalone lightning application (we don´t want this component to be viewed on a record detail or home page....).
I basically followed along the trailhead explanation, however when opening my Custom Application it seems that the subscribe method of this embedded component is not executed at all - however on the Home Page it is working.
Thanks a lot,