You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which is the expected behavior. The issue is that if I run npx expo prebuild again, it adds the full tag to the manifest once more! It adds it every time I run prebuild without cleaning.
Reproduction Link
No response
Reproduction
Step to reproduce this bug are:
Add react-native-video package to a Expo project that uses Prebuild
In app.json file, add "react-native-video" to the plugins array like with "enableNotificationControls": true parameter.
I suppose the issue comes from this block of code in src/expo-plugins/withNotificationControls.ts file:
manifest.application.map((application)=>{if(!application.service){application.service=[];}application.service.push({$: {'android:name': 'com.brentvatne.exoplayer.VideoPlaybackService','android:exported': 'false',// @ts-expect-error: 'android:foregroundServiceType' does not exist in type 'ManifestServiceAttributes'.'android:foregroundServiceType': 'mediaPlayback',},'intent-filter': [{action: [{$: {'android:name': 'androidx.media3.session.MediaSessionService',},},],},],});returnapplication;});
As you can see in the code above, it pushes the service to the application.service array without checking first. I can make a PR to fix that
@aminmeshk yes you are right, you're pointing the good code. I don't think the fix is difficult to implement, if you can open a PR, I would be happy to review it !
Version
6.5.0
What platforms are you having the problem on?
Android
System Version
macOs 14.1
On what device are you experiencing the issue?
Simulator
Architecture
Old architecture
What happened?
When I set
"enableNotificationControls": true
in myapp.json
and runnpx expo prebuild
, it adds the code below to theAndroidManifest.xml
file:which is the expected behavior. The issue is that if I run
npx expo prebuild
again, it adds the full tag to the manifest once more! It adds it every time I runprebuild
without cleaning.Reproduction Link
No response
Reproduction
Step to reproduce this bug are:
react-native-video
package to a Expo project that uses Prebuildapp.json
file, add"react-native-video"
to theplugins
array like with"enableNotificationControls": true
parameter.npx expo prebuild
AndroidManifest.xml
. The code below should be added to the manifest:npx expo prebuild
again.AndroidManifest.xml
. You can see there are now two of the exact same tag:The text was updated successfully, but these errors were encountered: