How to run background service in react native both ios and android - react-native

I'm try to create a Background service in React-native for both android & ios I'll try so many library but still I'll be not find batter way to develop background service.

Did you try with this way I think this will work on both iOS and android

Related

React Native - task that start on foreground and continue on background

React Native.
Is there a way to invoke a task - while app on foreground - and if the user closed the app, the task will continue on background?
IOS & Android support of course.
You need to use native modules for this. Some library can do this for you. But you shouldn't forget, they are just library. they are may not be enough.
react-native-background-task
Native modules for react native
Android background threading

Can I test OneSignal push notification on Expo platform?

I'm developing Mobile App for IOS and Android and using the Expo platform during development. In this way, simply with a QR code, I can test the application in seconds for both devices Android and IOS.
I'm going to implement OneSignal Push notification for my React-Native Expo project, But before doing that I want to be sure that I can keep using "expo start" command and develop applications easily instead of building on Android Studio or XCode.
Is it possible to test OneSignal push notification with Expo?
It should work. I have used Google Firebase for expo notification which worked fine in devlopment.
I didn't work with One Signal. But according to their docs it should work with expo. Check out more here
Found the Answer deep inside of https://docs.expo.io/introduction/why-not-expo/

Using a remote MacBook for building React Native apps with XCode

I have a Windows-machine and would like to use React Native for developing cross-platform UWP (so no Expo) and iOS apps. I also have a MacBook that I would like to use as a build host, like you can do with Xamarin.
Can remote build and iOS simulation with XCode be done using React Native and if so, how?
You can use Jenkins to turn your Mac in a build server. If you need the simulator you could use a screen sharing program like VNC.

Is it possible to upload an Android app (with split APKs) and an iOS app with same package IDs to Fabric Beta?

I'm developing a React Native application. We are using Fabric for beta testing. Is it possible to upload
Android app with split APKs ("armeabi-v7a" and "x86")
iOS app
with the same package ID?
Thanks! Yes this is possible, however you will need to create blank apps in AS and Xcode to get the initial skeleton setup in Fabric. Then you will be able to distribute your React Native app for both platforms.

Creating React Native App on Windows 8 without iPhone

I found Exponent, but it requires an iPhone. Can I do complete React native development on Windows 8?
Unfortunately not. You need XCode and Mac to build a react-native project.
As mentioned is not possible, but you can play, try to do some prototypes, and have fun with https://rnplay.org/
Android Development in React Native at Windows Platform is possible. See https://facebook.github.io/react-native/docs/linux-windows-support.html