Changes between Version 3 and Version 5 of Ticket #4766


Ignore:
Timestamp:
01/09/2017 02:42:26 PM (11 months ago)
Author:
mario
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4766 – Description

    v3 v5  
    11=== Background === 
    2 The new functionality of reporting non critical errors #4672 had actually enabled a proper reporting of one specific kind of *critical* errors, and that is a failure to initialize on app startup. The app actually should not continue operating - it's missing vital parts. So far we were just returning false from certain iOS API call, but that unfortunately does not kill the app. 
     2The new functionality of reporting non critical errors #4672 enabled proper reporting of one specific kind of *critical* errors, and that is a failure to initialize on app startup. The app actually should not continue operating - it's missing vital parts. 
     3 
     4However, #4672 wasn't originally intended to report critical errors but only non-crashing errors. Due to the fact, that we happen to be able to catch said critical error on runtime, we need to display a more specific notification and kill the application programatically in this instance. 
    35 
    46=== What to change === 
    5 When the app fails bootstrapping (app startup initialization): 
    6 1. display an alert with HockeyApp reporting options 
    7 2. in case of applicable options, log the failure 
    8 3. kill the app 
     7When the app fails bootstrapping (app startup initialization) display a notification based on the user's error report settings: 
     8 
     91. If the option "Always Send" (Settings -> Crash Reporting) is selected 
     10 a. Display a notification with the following content 
     11  i. Headline: {{{Adblock Browser}}} 
     12  ii. Text: {{{Oops, the browser cannot start properly and will close now. The issue was reported to the developers.}}} 
     13  iii. Button 1: {{{Close}}} 
     14 b. If "Button 1" is clicked, send a crash event and close ABB 
     15 
     162. If the option "Ask Me" (Settings -> Crash Reporting) is selected 
     17 a. Display a notification with the following content 
     18  i. Headline: {{{Adblock Browser}}} 
     19  ii. Text: {{{Oops, the browser cannot start properly and will close now. }}} 
     20  ii. Button 1: {{{Send Report}}} 
     21  iv. Button 2: {{{Don't Send}}} 
     22 b. If "Button 1" is clicked, send a crash event and close ABB 
     23 c. If "Button 2" is clicked, close ABB 
     24 
     253. If the option "Don|t send" (Settings -> Crash Reporting) is selected 
     26 a. Display a notification with the following content 
     27  i. Headline: {{{Adblock Browser}}} 
     28  ii. Text: {{{Oops, the browser cannot start properly and will close now. }}} 
     29  iii. Button 1: {{{Send Report}}} 
     30  iv. Button 2: {{{Don't Send}}} 
     31 b. If "Button 1" is clicked, send a crash event and close ABB 
     32 c. If "Button 2" is clicked, close ABB