Title: iOS 11.3.x and ngsw-worker.js Safari hangs on image upload · Issue #1909 · angular/angularfire · GitHub
Open Graph Title: iOS 11.3.x and ngsw-worker.js Safari hangs on image upload · Issue #1909 · angular/angularfire
X Title: iOS 11.3.x and ngsw-worker.js Safari hangs on image upload · Issue #1909 · angular/angularfire
Description: Version info Angular: 5.0.3 Angular Service Worker: 5.2.10 Firebase: 4.13.1 AngularFire: 5.0.0-rc.6 Ionic: 3.9.2 How to reproduce these conditions When running my PWA in Safari on iOS 11.3.x, if I try to upload a file to Firebase Storage...
Open Graph Description: Version info Angular: 5.0.3 Angular Service Worker: 5.2.10 Firebase: 4.13.1 AngularFire: 5.0.0-rc.6 Ionic: 3.9.2 How to reproduce these conditions When running my PWA in Safari on iOS 11.3.x, if I ...
X Description: Version info Angular: 5.0.3 Angular Service Worker: 5.2.10 Firebase: 4.13.1 AngularFire: 5.0.0-rc.6 Ionic: 3.9.2 How to reproduce these conditions When running my PWA in Safari on iOS 11.3.x, if I ...
Opengraph URL: https://github.com/angular/angularfire/issues/1909
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"iOS 11.3.x and ngsw-worker.js Safari hangs on image upload","articleBody":"### Version info\r\n\r\n**Angular:** 5.0.3\r\n\r\n**Angular Service Worker:** 5.2.10\r\n\r\n**Firebase:** 4.13.1\r\n\r\n**AngularFire:** 5.0.0-rc.6\r\n\r\n**Ionic:** 3.9.2\r\n\r\n### How to reproduce these conditions\r\nWhen running my PWA in Safari on iOS 11.3.x, if I try to upload a file to Firebase Storage I see the following error in my Sentry console:\r\n\r\n```\r\n{code_: storage/unknown, message_: Firebase Storage: An unknown error occur…, name_: FirebaseError, serverResponse_: Multipart body does not contain 2 or 3 p…}\r\n```\r\n\r\nSee: \r\n- https://github.com/angular/angular/issues/23244\r\n- https://github.com/angular/angular/issues/21191\r\n\r\n### Expected behaviour\r\n\r\nI should be able to use Firebase Storage and an Angular Service Worker.\r\n\r\n### Actual behavior\r\n\r\nI have to work around the issue, as follows\r\n\r\n```\r\nplatformBrowserDynamic().bootstrapModule(AppModule).then((moduleRef) => {\r\n\r\n StaticInjectorService.setInjector(moduleRef.injector);\r\n\r\n const isSafari = () => {\r\n return navigator.userAgent.indexOf('Safari') !== -1;\r\n };\r\n\r\n if (isSafari()) {\r\n\r\n // https://github.com/angular/angular/issues/23244\r\n console.log('Service Worker not registered');\r\n\r\n } else {\r\n\r\n // https://stackoverflow.com/questions/48723206/angular-5-service-worker-not-working\r\n // Seems to be a problem in registering service worker in module where also importing AngularFire2\r\n if ('serviceWorker' in navigator && ENV.production) {\r\n navigator.serviceWorker.register('/ngsw-worker.js');\r\n console.log('Service Worker registered');\r\n }\r\n\r\n }\r\n\r\n}).catch(error => console.log(error));\r\n```\r\n\r\n\r\n","author":{"url":"https://github.com/Robinyo","@type":"Person","name":"Robinyo"},"datePublished":"2018-10-02T09:06:38Z","url":"https://github.com/angular/angularfire/issues/1909"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:57ae3a43-97b4-ef3f-68c6-8b7532cad93b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C206:358871:11F702F:17B5958:6B011431 |
| html-safe-nonce | 4970cd070be39742e0b66768764c198ab66299053393ca4178748b10d5f5331a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjA2OjM1ODg3MToxMUY3MDJGOjE3QjU5NTg6NkIwMTE0MzEiLCJ2aXNpdG9yX2lkIjoiMzY5NzY4OTkxNzA0NDg4ODYyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 54a19070e711a08a9493603e63766bde19bcf4869dc89313e4abc4778e2c3677 |
| hovercard-subject-tag | issue:365805099 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angularfire/1909/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8316805eab41eb13c76ebd1c1ce61e14d32addb405bf24664664eb9eaf0df49f/angular/angularfire/issues/1909 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8316805eab41eb13c76ebd1c1ce61e14d32addb405bf24664664eb9eaf0df49f/angular/angularfire/issues/1909 |
| og:image:alt | Version info Angular: 5.0.3 Angular Service Worker: 5.2.10 Firebase: 4.13.1 AngularFire: 5.0.0-rc.6 Ionic: 3.9.2 How to reproduce these conditions When running my PWA in Safari on iOS 11.3.x, if I ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Robinyo |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angularfire git https://github.com/angular/angularfire.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 49453413 |
| octolytics-dimension-repository_nwo | angular/angularfire |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49453413 |
| octolytics-dimension-repository_network_root_nwo | angular/angularfire |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width