Building a Purple Experience
...
Experience Menus
App menu configuration in the ...

Account Deletion from the App

3min

Summary

To comply with app submission requirements from the App Stores, a menu entry for account deletion must be added to the Purple App. The 'Delete Account' menu entry directs users to an external customer-managed entitlement page where they can delete their account.

Preconditions

  1. Ensure the app menu ("app_menu.xml") includes a link to the customer's entitlement page.
  2. The entitlement flow must be set up and managed by the customer.
  3. The customer must handle the user authentication and account deletion process on their external website.
delete item menu in app_menu.xml


Description

Flow to delete a user account in the Purple App

  1. Open the App Menu:
    • Tap on the menu icon within the app.
  2. Select "Delete Account":
    • In the app menu, find and tap on the “Delete Account” option.
  3. Redirect to Customer's Website:
    • You will be directed to an external website managed by the customer.
  4. Login Again:
    • As no session token is transferred, you will need to log in again on the external website.
  5. Delete Account:
    • Click on “Delete my account” on the customer’s website and confirm your decision.
  6. Receive Success Message:
    • A success message will appear, confirming that your account has been deleted. This step is managed by the customer.
  7. Return to the App:
    • Close the in-app browser to return to the Purple App.
  8. App Response:
    • The app will perform the following:
      • Execute the on-resume logic.
      • Verify login, which will return "token is invalid."
      • Display the logged-out screen to the user.
  9. Post-Deletion:
    • You will not be able to log in again without a new registration.
    • Purchases made from app stores will still be available, but entitlement purchases will not be accessible anymore.