A problem occurred while integrating Xiaomi push. When the application is in the background, after the push notification is triggered, a bunch of openglerror0x0501 errors are thrown. Generally, this error is caused by thread switching. This problem is mainly caused by repeated LauncherActivity opening, click the application icon to open it.
A problem occurred while integrating Xiaomi push. When the application is in the background, a bunch of open gl error 0x0501 errors are thrown after the application is started by clicking push notification. Generally, this error is caused by thread switching, this problem occurs mainly because the Launcher Activity is opened repeatedly. Normally, click the application icon to open it, But click push.
A problem occurred while integrating Xiaomi push. When the application is in the background, a bunch of open gl Errors 0x0501 errors are thrown after the application is started by clicking push notification.
Generally, this error is caused by thread switching. This problem is mainly caused by the repeated opening of the Launcher Activity. Normally, opening the application icon does not occur, and clicking push to open the application will lead to repeated opening, the two may have different app opening mechanisms.
Solution:
Add parameters to the start activity field in the AndroidManifest. xml file.
Android: launchMode = "singleInstance"