-
Notifications
You must be signed in to change notification settings - Fork 10
Add the ability to reset Brave Rewards #204
Comments
To shutdown Brave ads execute |
@tmancey there is no mechanism in place to do that currently |
We also need to provide an option to hide the rewards button from URL bar if its not enabled. Here's my suggestion for implementation
|
|
Reset rewards should be MVP. For 4, Android does a force relaunch to remove any files relating to rewards once its turned off. |
@srirambv So you click "reset rewards" and it kills the app? Or does it show a message saying "Rewards will be reset when the app is closed". Neither of these sound like a good solution/user experience |
@kylehickinson this is what Android shows when you reset rewards. cc: @SergeyZhukovsky @samartnik to add more details on the background working of this |
Just an FYI iOS cannot force a relaunch. We can 1. crash the app on purpose (not good), 2. Basically tell the user to bring up the multitasking tray and swipe up to force-quit it |
@srirambv is this reset for QA or end users? |
@srirambv @anthonypkeane Android does not shutdown/cleanup properly (on my last check) as this was never added as part of rewards but was added, just in Android. We need a ticket for brave-core where we can implement a solution for Rewards like Ads which has a ShutdownBatAds function for this. |
@NejcZdovc this is not specific for QA. This is an end user feature that was implemented. @brave/android folks can give more info on what's being done in Android |
@NejcZdovc was used mainly to allow users to switch between staging/production environments. @anthonypkeane @srirambv Can QA/dev right now not just delete the app as Rewards needs the ability to shutdown its service for this to work correctly? |
@brave/android can you please explain how this works? Is just file deleted? Asking as we don't have support for this on desktop |
Brave Rewards settings page
|
@anthonypkeane you can't get to Rewards settings page if rewards is disabled |
This was the approach on Android as the OS required it. You might decide on a OS specific way here. |
Ok, this ticket has exploded. I will provide a design for the simple UI to clear things up on this side. cc @jamesmudgett |
There is no OS specific way to do this on iOS. Like I and others mentioned before there's no shutdown for ledger, so it's unsafe to just delete all the files to reset it. We can nil everything out and hope it cleans up properly, and then delete files but that's about as good as it gets. It wouldn't require the app to be closed, just that next time you open the panel it'd be back to the join rewards page. Just unsure whether or not there'll be side effects |
@anthonypkeane This will be available in the debug menu (#166), is that enough for MVP until a more stable solution is available in the actual native libs? |
@anthonypkeane @NejcZdovc @kylehickinson For this to be implemented we need a mechanism to shutdown Ledger so that files, databases etc. are not no longer changed. Then in the service layer for iOS we can safely remove files, however at this point if we remove files, they maybe rewritten by the native library. @NejcZdovc your thoughts please? |
Not a requirement for V1 MVP, but if there is time, please add this back in @tmancey |
Won't have for MVP as it requires a lot of work on ledger side to ensure a proper reset |
Issue moved to brave/brave-ios #1642 via ZenHub |
Add the ability for a user to Reset Brave Rewards
As on Android, resetting will return the users device back to "new user" state
In Settings, under OTHER SETTINGS, Sync, add a section called Brave Rewards
Here add the following
Reset Brave Rewards
Tapping it pops up a modal with
Title:
Reset Brave Rewards
This will delete your Brave wallet and reset all of your Brave Rewards data
Cancel | Confirm
If a user hasn't joined rewards, hide the option.
(Pls don't work on implementing this yet)
The text was updated successfully, but these errors were encountered: