Trigger push messages

Hey everyone,

I'm currently programming a chat app with SwiftUI, Firestore & optionally OneSignal.

But I'm currently having the problem that I don't receive push notifications when I'm not in the app.

External push messages that are triggered, for example, via the OneSignal website are also displayed in the backround.

I just can't get it triggered in the app, does anyone have a code or a suggestion for me?

Best regards Max

Trigger push messages
 
 
Q