First of all, you can read the official document about the Restrictions on starting activities from the background.
And then you can refer to the official document about Start an Activity from a Notification.
Waking up the app from the notification tapped event is a better choice than from the notification received event.