[go: up one dir, main page]

Request Permission to Read the File System

As a user, I need the app to request permission to read the file system so that it can find the sermons I download from The Table.

Acceptance Criteria:

  • GIVEN the application does not have the READ_EXTERNAL_STORAGE permission

  • AND it is not barred from asking for this permission

    • WHEN launching the application
      • THEN the user is prompted to grant or deny the READ_EXTERNAL_STORAGE permission
    • WHEN launching the application
    • AND the user grants the necessary permission
      • THEN the application populates the list of sermons
    • WHEN launching the application
    • AND the user denies the permission
      • THEN the application shows a toast message
      • AND that message reads "This permission is necessary for the Branham Player to work properly"
      • AND the application does not populate the list of sermons
  • GIVEN the application does not have the READ_EXTERNAL_STORAGE permission

  • AND it is barred from asking for this permission

    • WHEN launching the application
      • THEN the application shows a toast message
      • AND that message reads "This permission is necessary for the Branham Player to work properly"
      • AND the application does not populate the list of sermons
  • GIVEN the application has the READ_EXTERNAL_STORAGE permission

    • WHEN launching the application
      • THEN the user is not prompted to grant or deny any permission
      • AND the application populates the list of sermons

Note: This story does not cover re-asking for permission on foregrounding, only on a fresh launch.

Edited by Oliver Spryn