Event listeners don't work in background (when app is closed) if there is an isolate which has been created, since this creates a new flutter engine which creates a new instance of the flutter-radar plugin, and this recreates the method channel.
This change makes the method channel static and only creates it once
Event listeners don't work in background (when app is closed) if there is an isolate which has been created, since this creates a new flutter engine which creates a new instance of the flutter-radar plugin, and this recreates the method channel.
This change makes the method channel static and only creates it once