<p dir="auto">I want to run a background service that can read certain events, process and possibly record the data, and if appropriate create a notification which will launch the main app if pressed. Some examples of the events would be: new Bluetooth device in range, incoming data on a socket, incoming data from a USB device, SMS received, GPS location changed, Bluetooth device connection attempt, a certain physical button is pressed, accelerometer data exceeds a specified value, if the main app is terminated, and a lot of other things I'm not thinking of.</p>
<p dir="auto">Can someone make a comprehensive plugin (with a free or open source license) for this that works on iOS and Android? I know that iOS is more restrictive about background execution, but the plugin could include events associated with <a href="https://developer.apple.com/library/archive/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html#//apple_ref/doc/uid/TP40007072-CH4-SW23" rel="nofollow">these</a> and their Android equivalents.</p>
<p dir="auto">**edit: I'm aware of the new background execution feature. The problem is it's only for plugin developers, and requires a lot of platform specific code. I think there needs to be a higher level, platform independent plugin that is accessible to normal developers, not just plugin developers with experience in Android and iOS programming.</p>
<p dir="auto">See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="152639518" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/3671" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/3671/hovercard?comment_id=423782376&amp;comment_type=issue_comment" href="https://github.com/flutter/flutter/issues/3671#issuecomment-423782376">#3671 (comment)</a> and the responses.**</p>
<p dir="auto">Since we have background execution of dart code now, would it be possible to receive data notifications while the app is terminated?</p>