-
-
Notifications
You must be signed in to change notification settings - Fork 504
Description
Hoping you can provide a recommendation for how I might be able to keep the service from shutting down on Android when the queue is empty. The app I am working on is supposed to play audio when the user enters a geofence, so we need the queue to be built on the fly, in the background. It seems to work fine in the foreground but once the app is sent to the background the queue cannot be modified. We get the error...
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.media.session.MediaControllerCompat.addQueueItem(android.support.v4.media.MediaDescriptionCompat)' on a null object reference E/MethodChannel#ryanheise.com/audioService(21160): at com.ryanheise.audioservice.AudioServicePlugin$ClientHandler.onMethodCall(AudioServicePlugin.java:409)
Nothing like this happens on iOS