Closed mikgross closed 1 year ago
Our previous implementation this worked as intended, however after updating our RN version, the banner stoped showing (the service still works):
const listeningOrdersTaskOptions = { taskName: 'order_listener', taskTitle: 'Order listener', taskDesc: 'We are listening on new orders in the background', taskIcon: { name: 'ic_launcher', type: 'mipmap', }, color: '#ff00ff', linkingURI: '', // See Deep Linking for more info }; const listenOrders = React.useCallback(async () => { try { // service stuff, works fine } catch (error) { console.log(error); } }, []); const orderSub = React.useCallback(async () => { await BackgroundService.start(listenOrders, listeningOrdersTaskOptions); }, [listenOrders]); React.useEffect(() => { orderSub(); }, [orderSub, volumeLevel, isOffline, getOrders]);
Any idea why?
same on "react": "18.2.0", "react-native": "0.71.1",
@Rapsssito Is there any solution to this?
Solution found by @kyungjoon1 in #175.
Our previous implementation this worked as intended, however after updating our RN version, the banner stoped showing (the service still works):
Any idea why?