React Native Environment Info:
System:
OS: Windows 8.1
CPU: (4) x64 Intel(R) Core(TM) i3-4005U CPU @ 1.70GHz
Memory: 982.21 MB / 3.94 GB
Binaries:
Yarn: 1.16.0 - C:Program Files (x86)Yarnbinyarn.CMD
npm: 6.9.0 - C:Program Filesnodejsnpm.CMD
Watchman: 4.9.4 - C:watchmanwatchman.EXE
"react-native-track-player": "^1.1.4"
This code that should prevent a new instance from being launched does not work,
Intent openApp = context.getPackageManager().getLaunchIntentForPackage(packageName);
// Prevent the app from launching a new instance
openApp.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
My bad, had left out the singleTask option in the manifest file.
Is it working now? Can I close this issue?
Most helpful comment
My bad, had left out the singleTask option in the manifest file.