a little complicated. need to add the sender's document to the notification's payload, initialize a Student instance in the service and send it through the pending intent, and then read the student's document in the ChatRoom activity and change the app's current active student to this student. Then, also need to add the auto-redirection mechanism. ~2hr work
a little complicated. need to add the sender's document to the notification's payload, initialize a Student instance in the service and send it through the pending intent, and then read the student's document in the ChatRoom activity and change the app's current active student to this student. Then, also need to add the auto-redirection mechanism. ~2hr work