sentry-demos / ios

iOS Empower Plant
1 stars 4 forks source link

Sentry SDK initial testing #1

Closed thinkocapo closed 2 years ago

thinkocapo commented 2 years ago

Overview

Install and configure Sentry SDK for the first time in this app. Make sure that captures the right events before further developing the rest of the Empower Plant functionality.

The EmpowerPlant is now the home screen (not the list app). The mobile vitals now get captured for this EmpowerPlant homescreen which will soon fetch and render the products.

The app today

Right now, basic navigation between the screens work via segues and a NavigationController. The titles and buttons only display when you run it. The screens themselves are colored but blank and capture errors + transactions upon load.

UIKit is used in this app. Not SwiftUI yet, which is not as mature of an iOS framework as UIKit, nor is it as widely adopted. Therefore, best auto instrumentation is still for UIKit.

Green and Yellow screens are EmpowerPlant and its Shopping Cart Purple is the List App.

Colored screens are for example purposes only and don't represent the final design.

XCode Storyboard

image

Testing

List App

error Handled Exception from ListAppViewController

message

transaction ListAppViewController

Empower Plant

transaction CartViewController

transaction EmpowerPLantViewController warm.start, ui.load :)

Todo

Uploading debug symbols may enhance the quality of the Error in Sentry

Test more types of errors and crashes

Make buttons in List App

Create the Data Structures for Empower Plant, followed by http requests to fetch the data, followed by a table to display the data.

image