I am working on an app which listen a socket event. When the the socket event is received and the app is in background(background), It should be foreground. I have tried different packages here:
AppToForeground.appToForeground();
but the code is not executed on while the app is on the background. Any solution is appreciated