Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

[Android] A weird behave on lockscreen on Samsung Real Device #374

Open
2 of 4 tasks
ithustle opened this issue Feb 15, 2021 · 0 comments
Open
2 of 4 tasks

[Android] A weird behave on lockscreen on Samsung Real Device #374

ithustle opened this issue Feb 15, 2021 · 0 comments

Comments

@ithustle
Copy link

Description

  1. Sample code (provide repo url or sample code)

When I touch on pause control the song is paused but change description song to previous track played.

const remoteControls = () => {
        MusicControl.on(Command.pause, () => {
            props.pauseSong();
            MusicControl.updatePlayback({
                state: MusicControl.STATE_PAUSED,
            });
        })

        MusicControl.on(Command.play, () => {
            props.resumeSong();
            MusicControl.updatePlayback({
                state: MusicControl.STATE_PLAYING,
            });
        })
    }

I called remoteControls() functions on useEffect.

  1. Platform ?

    • iOS
    • Android
  1. Device
  • Simulator
  • Real device
@ithustle ithustle changed the title [Android] A weird behave on lockscreen [Android] A weird behave on lockscreen on Samsung Real Device Feb 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant