red5pro / react-native-red5pro

React Native Red5 Pro Publisher/Subscriber
https://www.red5pro.com/
Other
34 stars 20 forks source link

fixed foreground service crash on Android version >= 28 #60

Closed chungweileong94 closed 4 years ago

chungweileong94 commented 4 years ago

For Android version >= 28, the app will crash when it trying to call startForeground(...). So starting from API 28, we have to create a notification channel, as well as declare the FOREGROUND_SERVICE permission

bustardcelly commented 4 years ago

Thank you for the fix @chungweileong94 !