Repository navigation
fix: [SDK-5537] log handled failures and setup mistakes below ERROR #1778
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -156,7 +156,7 @@ - (void)resetWebViewToMaxBoundsAndResizeHeight:(void (^) (NSNumber *newHeight)) | |
| [self.webView evaluateJavaScript:OS_JS_GET_PAGE_META_DATA_METHOD completionHandler:^(NSDictionary *result, NSError *error) { | ||
| if (error) { | ||
| NSString *errorMessage = [NSString stringWithFormat:@"Javascript Method: %@ Evaluated with Error: %@", OS_JS_GET_PAGE_META_DATA_METHOD, error]; | ||
| [OneSignalLog onesignalLog:ONE_S_LL_ERROR message:errorMessage]; | ||
| [OneSignalLog onesignalLog:ONE_S_LL_INFO message:errorMessage]; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On rotation the message is hidden and its constraints are removed before this call. A JavaScript failure returns without |
||
| return; | ||
| } | ||
| NSString *successMessage = [NSString stringWithFormat:@"Javascript Method: %@ Evaluated with Success: %@", OS_JS_GET_PAGE_META_DATA_METHOD, result]; | ||
|
|
@@ -182,7 +182,7 @@ - (void)updateSafeAreaInsets { | |
| [self.webView evaluateJavaScript:setInsetsString completionHandler:^(NSDictionary *result, NSError * _Nullable error) { | ||
| if (error) { | ||
| NSString *errorMessage = [NSString stringWithFormat:@"Javascript Method: %@ Evaluated with Error: %@", OS_SET_SAFE_AREA_INSETS_METHOD, error]; | ||
| [OneSignalLog onesignalLog:ONE_S_LL_ERROR message:errorMessage]; | ||
| [OneSignalLog onesignalLog:ONE_S_LL_INFO message:errorMessage]; | ||
| return; | ||
| } | ||
| NSString *successMessage = [NSString stringWithFormat:@"Javascript Method: %@ Evaluated with Success: %@", OS_SET_SAFE_AREA_INSETS_METHOD, result]; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -339,7 +339,7 @@ - (void)encounteredErrorLoadingMessageContent:(NSError * _Nullable)error { | |
| if (error.code == 410 || error.code == 404) { | ||
| [self.delegate messageIsNotActive:self.message]; | ||
| } | ||
| [OneSignalLog onesignalLog:ONE_S_LL_ERROR message:message]; | ||
| [OneSignalLog onesignalLog:ONE_S_LL_INFO message:message]; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is INFO, but neither the 404 path nor the other statuses clear |
||
| } | ||
|
|
||
| /* | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This failure is not retried. The block logs and signals the semaphore. Dropped work is WARN under the rule this PR states.