Notification AlertDialog

I’m currently working on an iPhone app with Xcode12 and Swift for notifications with an 8am survey, but I need the notifications to have an action. Is there any way to show the button in a dialog-like way from the beginning?

I’m looking for a dialog that can be displayed while the app is in the background.