-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
please need your complete guidance/support on how to implement a daily wallpaper changer in react native ( run task even when the app is closed ). #492
Comments
I don’t know what a “wallpaper changer” is (nor am I interested). For Android, this plug-in implements the what you do in your callback is your business. The only thing I’m interested is seeing your callback execute (eg a see the readme to learn how to simulate events. |
For terminated state, see api docs in readme |
I went through several docs... including the
https://reactnative.dev/docs/headless-js-android... could not follow as it
is in Java.
"Wallpaper changer" : this wallpaper app will change the wallpaper of the
phone daily (every 24 hours) automatically, even if the app is in
foreground, background and terminated state.
…On Mon, Apr 15, 2024 at 2:20 AM Chris Scott ***@***.***> wrote:
For terminated state, see api docs in readme enableHeadless and learn how
to implement a “HeadlessTask”
—
Reply to this email directly, view it on GitHub
<#492 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BH2LPFTDV3DFDSV6LDNMIA3Y5LTYHAVCNFSM6AAAAABGGJ3RZCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJUGE4DANRTGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
.com>
|
Stop concentrating on “wallpaper change” and just focus on the simple task of logging a simple message in your callback. you don’t need to “read Java”. All the api docs are linked in the readme |
Ok, so you mean to say that if the stopOnTerminate: true and enableHeadless: true is set then no need of adding any Java code? |
Why don’t you try it and see? |
wow! that's awesome!!! It works. Able to simulate setting the wallpaper in all states (foreground, background and terminated) of the device. thanks a ton @christocracy 🎉 |
Your Environment
react-native -v
):Expected Behavior
Actual Behavior
Steps to Reproduce
Context
please need your complete guidance/support on how to implement a daily wallpaper changer in react native ( run task even when the app is closed ).
Debug logs
The text was updated successfully, but these errors were encountered: