-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Configuration
React Native Environment Info:
System:
OS: macOS 10.14.3
Binaries:
Node: 10.12.0 - /usr/local/bin/node
Yarn: 1.9.4 - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.2
Android SDK:
API Levels: 23, 26, 27, 28
Build Tools: 28.0.3
System Images: android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom
npmPackages:
react: 16.8.3 => 16.8.3
react-native: ^0.59.4 => 0.59.4
React Native Track Player - v1.1.4
Issue
The artwork for the tracks is not showing up on the lock screen on iOS, on Android everything is fine. On iOS, instead of showing the correct artwork it shows the app icon instead.
Code
I am adding tracks like this
TrackPlayer.add({ id: value.name, url: value.url, title: value.name, artist: value.artist, artwork: value.artwork });
The artwork field is:
artwork: require('App/assets/x.jpg')
The artwork is showing fine within the app but never works on the lock screen.