I’m able to setWallpaper in Android while app is in foreground and in background using background task. However I’m not able to set the wallpaper when the app is terminated (cleared from the recents). Is this possible, if so how can achieve this in react native? With expo or without.
Question posted in React native
The official React Native documentation can be found here.
The official React Native documentation can be found here.
2
Answers
I don’t think you can do this if the app is terminated. You could try this workaround to keep the app minimized instead?
https://www.npmjs.com/package/react-native-minimize
This can not be done.
Once app is terminated from memory it cant perform any task.
Maybe you should try firebase messaging, alarm or other notification channel.