Opened on 12/17/2015 at 05:33:16 PM

Closed on 01/18/2016 at 01:51:09 PM

Last modified on 02/23/2016 at 12:35:51 PM

#3436 closed change (fixed)

"Always send" option of the crash reporter doesn't work

Reported by: mario Assignee:
Priority: P3 Milestone: Adblock-Browser-for-iOS-1.3.0
Module: Adblock-Browser-for-iOS Keywords: salsita
Cc: sven Blocked By:
Blocking: Platform: Adblock Browser for iOS
Ready: no Confidential: no
Tester: Scheer Verified working: yes
Review URL(s):

Description (last modified by mario)

Background

#3272 introduced a third party crash reporter. Every time the app crashes it will prompt the user to send a crash report (see original issue for more details). Said prompt introduces an option to "always send" crash reports without prompting the user anymore.
In order to make use of this feature implement the following changes.

Want to change

Changes to the app's behaviour

  1. When tapping "Always Send" (after being prompted to send a crash report) save this user decision and always send crash reports upon crashes without prompting the user anymore unless this option is later on changed.
  2. When tapping "Don't Send" (after being prompted to send a crash report) save this user decision and never send crash reports upon crashes without prompting the user anymore unless this option is later on changed.

Changes to UI

  1. When tapping "Always Send" or "Don't Send" (after being prompted to send a crash report) display this modal dialog (please use an iOS system dialog for displaying this content. This will have a slightly different layout than shown in the screenshot).

Headline: Crash Reports
Text: You can change this setting at any time in:
Text in bold: Settings → Crash Reports
Button: Got it

  1. When tapping "Got it" the modal dialog closes.

Changes to configuration

  1. Add a new settings option to the category "General" as shown in this screenshot.

Text: Crash Reports

  1. After tapping the new settings option "Crash Reports" display the crash report options as shown in this screenshot containing the following functionality:
    1. When selecting "Always" always send crash reports upon crashes without prompting the user anymore.
    2. When selecting "Never" never send crash reports upon crashes without prompting the user anymore.
    3. When selecting "Ask me after a crash" always prompt the user to send a crash report upon crashes (as outlined in #3272).

Title: "Crash Reports"
Text above options: "SEND CRASH REPORT"
Text for option 1: "Always"
Text for option 2: "Never"
Text for option 3: "Ask Me After a Crash"
Text below options: "Only anonymized data containing device information and crash details are sent. Please refer to our privacy policy at adblockplus.org for more information. Open privacy policy."

Remark for testers

In order to test these changes you need to intentionally crash the app. Please consult #3525 to do so.

Attachments (7)

adblock browser iOS 71 - crash report dialog.png (4.5 KB) - added by pavelz on 01/14/2016 at 07:54:53 AM.
adblock browser iOS 71 - crash report settings 1.png (6.5 KB) - added by pavelz on 01/14/2016 at 07:55:02 AM.
adblock browser iOS 71 - crash report settings 2.png (3.8 KB) - added by pavelz on 01/14/2016 at 07:55:22 AM.
IMG_3987.PNG (83.0 KB) - added by pavelz on 01/14/2016 at 07:57:19 AM.
The original HA dialog
adblock browser iOS 71 - crash report dialog.2.png (165.5 KB) - added by pavelz on 01/14/2016 at 08:46:09 AM.
Proper full size
adblock browser iOS 71 - crash report settings 1.2.png (189.1 KB) - added by pavelz on 01/14/2016 at 08:46:23 AM.
Proper full size
adblock browser iOS 71 - crash report settings 2.2.png (168.6 KB) - added by pavelz on 01/14/2016 at 08:46:38 AM.
Proper full size

Download all attachments as: .zip

Change History (23)

comment:1 Changed on 12/18/2015 at 09:30:55 AM by pavelz

Oh. That might be HockeyApp bug even. There are only 3 options for the report sending method: Disabled, Always send and Always ask.
https://github.com/bitstadium/HockeySDK-iOS/blob/0bf1bd929c0684708f6c9cf1bfb3e81655803579/Classes/BITCrashManager.h#L48
The only applicable option for us is "Always ask", which, well, is probably always asking. I will post a question on their support forum

comment:2 Changed on 01/06/2016 at 08:31:15 PM by pavelz

Not a bug. We were holding it wrong. The selected reporting mode is saved in an app setting and the app is supposed to verify the setting and set it to initial "Always ask" ONLY if it is not set yet.
https://github.com/bitstadium/HockeySDK-iOS/blob/develop/Classes/BITCrashManager.h#L178
We were setting it always on every start, thinking that it's some kind of "mode of operation" and the selected value is saved elsewhere. Implementing this is not a big task. But there is a need for additional UI:

  1. an information which should appear immediately after the user sets "Always send" or "Never send", informing user about the method of making the confirmation dialog start appearing again. Simplest would be another popup immediately after the HA popup. Texting needed. Something along "If you want to have a select a crash reporting mode again, go to Settings"
  1. an actual place for the reset method. Should be a button which is visible when the setting is one of "Always" or "Never". Without much thinking, the "About application" screen comes to mind. Texting needed. Something along "Click Reset if you want to select the crash reporting mode again".

comment:3 Changed on 01/07/2016 at 08:39:50 AM by mario

  • Cc sven added

@pavelz, thanks for the explanation. Adding those two element makes sense.

@sven, mind providing a styleguide for that?

comment:4 Changed on 01/12/2016 at 08:39:11 AM by pavelz

  • Keywords needs-design added

Changed on 01/14/2016 at 07:54:53 AM by pavelz

Changed on 01/14/2016 at 07:55:02 AM by pavelz

Changed on 01/14/2016 at 07:55:22 AM by pavelz

Changed on 01/14/2016 at 07:57:19 AM by pavelz

The original HA dialog

Changed on 01/14/2016 at 08:46:09 AM by pavelz

Proper full size

Changed on 01/14/2016 at 08:46:23 AM by pavelz

Proper full size

Changed on 01/14/2016 at 08:46:38 AM by pavelz

Proper full size

comment:5 Changed on 01/14/2016 at 03:38:25 PM by mario

  • Description modified (diff)
  • Type changed from defect to change

comment:6 Changed on 01/14/2016 at 03:41:00 PM by mario

  • Cc lisa added
  • Keywords needs-design removed

comment:7 Changed on 01/14/2016 at 03:46:54 PM by mario

  • Description modified (diff)

comment:8 Changed on 01/14/2016 at 03:49:20 PM by mario

  • Description modified (diff)

comment:9 Changed on 01/14/2016 at 04:26:18 PM by lisabielik

Please change:

"Always"
"Never"
"Ask me after a crash"

to

"Always"
"Never"
"Ask Me After a Crash"

comment:10 Changed on 01/14/2016 at 04:28:05 PM by mario

  • Cc lisa removed
  • Description modified (diff)

Added Lisa's changes to the issue description.

comment:11 Changed on 01/15/2016 at 09:31:48 AM by pavelz

@mario regarding your added "Remark for testers", it seems that we need a dependable crash. I suggest a button which would appear in all builds except release. Fill a feature request if you agree. I propose text "Crash the app now".

comment:12 Changed on 01/18/2016 at 09:08:55 AM by mario

  • Description modified (diff)

@pavelz, I've created an Issue for this: #3525

comment:13 Changed on 01/18/2016 at 10:42:27 AM by mario

  • Description modified (diff)

comment:14 Changed on 01/18/2016 at 01:51:09 PM by jand

  • Resolution set to fixed
  • Status changed from new to closed

comment:15 Changed on 02/09/2016 at 04:25:18 PM by mario

  • Milestone set to Adblock-Browser-for-iOS-next

Batch modify: added Adblock-Browser-for-iOS-next milestone.

comment:16 Changed on 02/23/2016 at 12:35:51 PM by scheer

  • Tester changed from Unknown to Scheer
  • Verified working set
  • App's behaviour:
    1. When tapping "Always Send" the users selection is saved and crash reports are always sent.
    2. When tapping "Don't Send" the users selection is kept and they are no longer prompted to send a report upon a crash.
  • UI Changes:
    1. When tapping "Always Send" or "Don't Send" a modal dialog is presented stating 'Crash Reports - You can change this setting at any time in: - Settings->Crash Reports - Got it'
    2. When tapping "Got it" the modal dialog closes.
  • Configuration Changes:
    1. A new settings option is available in the category "General" named 'Crash Reports'.
    2. After tapping the new settings option "Crash Reports" the crash report options 'always', 'Never' and 'Ask Me After a Crash' are displayed. Currently, for development builds 'Generate Test Crash' is also shown.
    3. When selecting "Always" the crash reports always send without prompting the user anymore.
    4. When selecting "Never" crash reports are never sent and the user is no longer prompted.
    5. When selecting "Ask me after a crash" the user is always prompted to send a the crash report.

ABB 1.3.0-qa (824)
iPhone 6 Plus - iOS 9.2.1

Add Comment

Modify Ticket

Change Properties
Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none).
 
Note: See TracTickets for help on using tickets.