問題タブ [mpremotecommandcenter]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
swift - Swift MPRemoteCommandCenter nextTrackCommand が 3 回呼び出される
MPRemoteCommandCenter を使用して、音楽ラジオ アプリの曲を変更しています。しかし、ロック画面から次のトラック ボタンを押すと、1 ステップではなく 3 ステップジャンプします。
これが私のコードです:
出力は次のとおりです。
でもボタンは1回しか押さない。3回ではなく1回だけ出力するにはどうすればよいですか?
ios - 通知センターから MPRemoteCommandCenter を削除する方法
MPRemoteCommandCenter.shared()
通知センターから削除する方法。このコードを試しましたが、コマンドとアクションのみが無効になっています。通知センターから完全な通知を削除する必要があります。アプリを強制終了すると、通知バーに表示されなくなり、別の画面に移動したときに同じことが行われるようになりました。