fix(notifications): refresh native fetcher on resume and log API error bodies

Call configureNativeFetcherIfReady when the app becomes active so getHeaders can
supply a new JWT before the next background prefetch when users return from
background.

In TimeSafariNativeFetcher, read HttpURLConnection#getErrorStream for non-200
responses and log a capped body snippet (including on retryable errors) to
diagnose JWT_VERIFY_FAILED and other API failures.
This commit is contained in:
Jose Olarte III
2026-03-26 18:16:08 +08:00
parent 0ebad3b497
commit f4ee507918
3 changed files with 53 additions and 4 deletions

4
package-lock.json generated
View File

@@ -8685,8 +8685,8 @@
}
},
"node_modules/@timesafari/daily-notification-plugin": {
"version": "2.1.3",
"resolved": "git+https://gitea.anomalistdesign.com/trent_larson/daily-notification-plugin.git#4dd1aea00224e4edc79a1fa3aa5767985a771c25",
"version": "2.1.5",
"resolved": "git+https://gitea.anomalistdesign.com/trent_larson/daily-notification-plugin.git#469167a55fbebb91b3e61d6c8b3aec6fc873a13c",
"license": "MIT",
"workspaces": [
"packages/*"