Podlive / podlive-macos

Never miss a live streaming podcast!
https://podlive.io
48 stars 3 forks source link

Updating realtime notifications channel for installation fails when closing app #16

Closed funkenstrahlen closed 5 years ago

funkenstrahlen commented 5 years ago

The request does not finish. This is from the server log:

2019-04-12T20:44:00.552051+00:00 heroku[router]: sock=client at=warning code=H27 desc="Client Request Interrupted" method=PUT path="/parse/classes/_Installation/xxxxxxx" host=podlive-parse-server.herokuapp.com request_id=d2e4a32a-f888-44ba-8f58-ad3568126282 fwd="xxxxxxxx" dyno=web.1 connect=0ms service=10ms status=499 bytes=0 protocol=https

Maybe this is caused because the app is terminated before the request finishes?

When the app is launched and the realtimeNotifications key is set the request finishes in the server logs successfully.

funkenstrahlen commented 5 years ago

Maybe this is caused because currently the API call on app closing is executed asynchronously in the background and therefore the AppDelegate callback finishes before the request is completed.

phranck commented 5 years ago

@funkenstrahlen Since this is related to #17 I already merged into develop branch I will close the issue. App Store update is on the way...