
This can be done anywhere, including prior to the runApp command. Initialise the nowplaying service by starting it's instance: ()
NOWPLAYING MEMPHIS UPDATE
You'll also need to update the gradle version to a proper version, which supports Android 11 (if you don't have it already) Note: For use queries you should write the queries code out of the application tag, not inside the application tag All you have to do is to add the following to AndroidManifest.xml: I have an app that needs to be able to ask for information for all apps. To query and interact with specific packages you would update your AndroidManifest.xml like this: Query and interact with specific packages Packages, or - if you have reasons for it - use the permission. So you either have to stop what you are doing, or request to access information about certain

If your app targets Android 11, you might need to add the To enable the notification listener service, add the following block to your android/app/src/main/AndroidManifest.xml, just before the closing tag: Īndroid 11 changes how apps can query and interact with other apps We need this to show you what's currently playing

InstallationĪdd nowplaying as a dependency in your pubspec.yaml file: dependencies:Īdd the following usage to your ios/Runner/ist: NSAppleMusicUsageDescription On iOS nowplaying is restricted to access to music or media played via the Apple Music/iTunes app. Track revealing its play state via a notification.

On Android nowplaying makes use of the NotifiationListenerService, and shows any A Flutter plugin for iOS and Android which surfaces metadata around the currently playing
