Issue 1:
$ flutter create myapp
...app created..
$ cd myapp
$ flutter run

This app produces the following error when run on a Pixel XL:

--------- beginning of main
W/ActivityManager: Permission Denial: Accessing service ComponentInfo{com.google.android.music/com.google.android.music.dial.DialMediaRouteProviderService} from pid=19682, uid=10017 that is not exported from uid 10077
W/ActivityManager: Force finishing activity com.yourcompany.myapp/org.domokit.sky.shell.SkyActivity
W/ActivityManager: Permission Denial: Accessing service ComponentInfo{com.google.android.music/com.google.android.music.dial.DialMediaRouteProviderService} from pid=4197, uid=10146 that is not exported from uid 10077
W/System.err: org.xmlpull.v1.XmlPullParserException: Unexpected token (position:TEXT >
W/System.err: @3:3 in java.io.InputStreamReader@48e3c2d)
W/System.err: at org.kxml2.io.KXmlParser.next(KXmlParser.java:432)
W/System.err: at org.kxml2.io.KXmlParser.next(KXmlParser.java:313)
W/System.err: at com.erosnow.utils.ao.b(UtilFortumo.java:1129)
W/System.err: at com.erosnow.utils.ap.a(UtilFortumo.java:174)
W/System.err: at com.erosnow.utils.ap.doInBackground(UtilFortumo.java:138)
W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:305)
W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
W/System.err: at java.lang.Thread.run(Thread.java:761)
W/System.err: org.xmlpull.v1.XmlPullParserException: name expected (position:TEXT >
W/System.err: @3:3 in java.io.InputStreamReader@48e3c2d)
W/System.err: at org.kxml2.io.KXmlParser.checkRelaxed(KXmlParser.java:305)
W/System.err: at org.kxml2.io.KXmlParser.readName(KXmlParser.java:1548)
W/System.err: at org.kxml2.io.KXmlParser.parseStartTag(KXmlParser.java:1091)
W/System.err: at org.kxml2.io.KXmlParser.next(KXmlParser.java:372)
W/System.err: at org.kxml2.io.KXmlParser.next(KXmlParser.java:313)
W/System.err: at com.erosnow.utils.ao.b(UtilFortumo.java:1129)
W/System.err: at com.erosnow.utils.aq.a(UtilFortumo.java:233)
W/System.err: at com.erosnow.utils.aq.doInBackground(UtilFortumo.java:198)
W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:305)
W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
W/System.err: at java.lang.Thread.run(Thread.java:761)
Timed out while waiting for a debug connection.
Error launching DevFS loader on Pixel XL.

Below is the input from flutter doctor command

$ flutter doctor
[✓] Flutter (on Mac OS, channel master)
• Flutter at /Users/nasir/flutter-work/flutter
• Framework revision 022cb2d9dc (2 days ago), 2016-10-21 16:54:59
• Engine revision db12c5e621
• Tools Dart version 1.21.0-dev.0.0

[✓] Android toolchain - develop for Android devices (Android SDK 24.0.0-preview)
• Android SDK at /Users/nasir/android_sdk_L/android-sdk-macosx
• Platform android-N, build-tools 24.0.0-preview
• Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
[-] iOS toolchain - develop for iOS devices (Xcode 7.3.1)
• XCode at /Applications/Xcode.app/Contents/Developer
• Xcode 7.3.1, Build version 7D1014
x ideviceinstaller not available; this is used to discover connected iOS devices.
Install via 'brew install ideviceinstaller'.
x ios-deploy not available; this is used to deploy to connected iOS devices.
Install via 'brew install ios-deploy'.

[✓] Atom - a lightweight development environment for Flutter
• flutter plugin version 0.2.6
• dartlang plugin version 0.6.42

[-] IntelliJ IDEA Community Edition (version 2016.2)
• Dart plugin not installed; this adds Dart specific functionality.
• Flutter plugin not installed; this adds Flutter specific functionality.
• For information about managing plugins, see
https://www.jetbrains.com/help/idea/2016.2/managing-plugins.html

[✓] Connected devices
• Pixel XL • HT6860200899 • android-arm

Issue 2:
Steps to Reproduce

Start a Timer with a 30 second delay - set the callback to fire a method to make a sound using (package audioplayers: ^0.7.8)

Lock the phone

Wait 30 seconds. Notice that the sound was not fired right away. Sometimes it is 15 seconds late, sometimes it is 45 seconds late.

Why is there such a delay when trying to get a sound to play after a specified time when the device is locked? If the device is NOT locked, the sound is made exactly 30 seconds after starting the timer, every time.

I have tried to schedule notifications with package flutter_local_notifications ^0.3.7 but that too sometimes delays up to 45 seconds.

What am I to do to ensure a sound is fired 30 seconds after a user action, EVEN when the device is locked?

Logs

[√] Flutter (Channel master, v0.11.7-pre.47, on Microsoft Windows [Version 10.0.17134.471], locale en-CA)
• Flutter version 0.11.7-pre.47 at C:\src\flutter
• Framework revision 5385132c6b (4 weeks ago), 2018-11-16 16:53:59 -0800
• Engine revision c02dd8f935
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[√] Android toolchain - develop for Android devices (Android SDK 28.0.2)
• Android SDK at C:\Users\KevinCherryholme\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.2
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.

[√] Android Studio (version 3.2)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 31.2.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[!] VS Code, 64-bit edition (version 1.29.1)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (1 available)
• Pixel 3 XL • 88TY020NT • android-arm64 • Android 9 (API 28)

! Doctor found issues in 1 category.