'agora issue in hide message from teacher on live meeting

anyone can help me in issue for ?? how can i hide popup or any messages coming while demo with teacher in recording from attendee 2. Oops the user is disconnected and student disconnect from meeting suddenly



Solution 1:[1]

You can use NotificationListenerService to disable all the notification while your app is in the foreground. You can read more about it here

This code might help you out

public class NotificationListener extends NotificationListenerService {

    @Override
    public void onNotificationPosted(StatusBarNotification statusBarNotification) {
      cancelAllNotifications(); 
    }
}

Also, don't forget to add this to your AndroidManifest

 <service android:name=".NotificationListener"
        android:label="@string/app_name"
        android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
        <intent-filter>
            <action android:name="android.service.notification.NotificationListenerService" />
        </intent-filter>
    </service>

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 meherdeep thakur