I want to run camera in background of android app. Currently the camera gets stuck after 1 minute of working in background. That could be probably due to background limits provided by android.
Can workmanager resolve this issue?
Thanks in advance
Related
In my app I want to implement backgroud file sync to the database using react-native-background-task. It is working for IOS but not working for android. Can anyone give some solution which will work for both IOS and android
No, it just doesn't work well. I have been trying since 4 month and searching info I reach to the fact that just is a feature that is not well implemented in React-Native.
I'm developing a react-native app and I'm facing a problem: I need to execute a periodical task (an API call to post some data) in all possible cases: the app is in the background, app is in foreground and app is killed (double tap on the home button and swipe up).
How could I achieve this in iOS?
For Android, HeadlessJS seems to work fine, but for iOS I couldn't find anything which could fit my case.
I've tried with react-native-background-fetch but if the app is killed, also the background fetch is halted (https://github.com/transistorsoft/react-native-background-fetch/issues/34)
I've tried react-native-background-timer, but it works only until the app is killed.
I've also tried adding a geolocation native library to set background mode "location updates" capability, and calling its start method inside the didFinishLaunchingWithOptions into AppDelegate.m. But also this works only until the app is killed.
If I use the same native library on a native iOS app, and I call it inside the same method into AppDelegate.m, it keeps working also when the app is killed.
So which is the difference between the native and react-native app that lets the app survive the force-quit?
I've also tried reading this https://developer.apple.com/library/archive/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html but I couldn't replicate that info via react-native.
Can someone help me, please?
when i install the ios app , app screen is not responding. After refreshing and clear the background process the app is working fine.
How to fix the issue?
Yeah, you'll need to include some code or more details as to what is happening. It sounds like you have some code that is failing on initialization but is not depended upon for the rest of the app. If you run react-native log-ios from the command line in your repo, do you get any interesting messages that might contribute to the unresponsiveness?
I develop the app with React-Native, and it is running very well in ios simulator, but when I run it on device it responds to my click event very very slow. But the scrollview is OK.
Anyone help me?
Thanks in advance!
PS:React-Native version:0.34.0
PSS: I found out that this happens when I run app from the xcode project. And the xcode log console keeps printing many logs.
PSSS: The RAM keeps up growing!!!!
A ios simulator have a slow mode. Try cmd+t for desactivate/activate slow mode.
I found out that is caused by package "react-native-logger". I uninstall it and the app runs normally so far.
I have such problem
I am making an application with xcode 4.3.1 iOS 4.0 as target.
I have default picture as starting image.
I am using core data.
When I start application then type some info into it and then push it to background. Its all ok. If I try to start after I went to background it become crash after start image is loaded. Second launch is good without crashes. When I try to start application with some delay it does not crash.
The problem that I have no errors in debbuger and no logs about crash in iPod. All seems well.
If you had such problems, please say how you fix this issue.
P.S. Sorry for my English
You can try using logs and check out Xcode's organizer's console for your device so you can get additional info about functions that were called last.