iOS Question Setting a flag if app is opened from Firebase Notification

WardOperationsLLC

Member
Licensed User
Longtime User
I'm having some difficulties in finding where I need to edit some code. My goal is for when a customer hits the notification about a new deal they get taken directly to my panel that displays the deals on it. I'm using the FirebaseMessaging and UserNotificationCenter (for displaying notifications when the app is in the foreground), but can't seem to find out where to add some code to know if the app was opened from a notification. The way I was trying to handle it was a public global boolean fromNotification in the Main section that I checked if it's true or false in my code to load various information in my app. I tried setting it True in the Applicaiton_RemoteNotification section of Main, but it doesn't seem to be getting set to true. I imagine I'm going to have to handle it somewhere in the FirebaseMessaging class, but I'm not sure where to begin. Anyone know how to achieve what I'm trying to do , or know where to point me to try to figure it out?
 
Top