nordnet / cordova-hot-code-push-cli

[DEPRECATED] - This is a command line utility for Cordova Hot Code Push Plugin.

Home Page:https://github.com/nordnet/cordova-hot-code-push-cli/issues/79

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add optional logging for server (requests for assets as clients fetch updates)

sgilroy opened this issue · comments

Logging is currently used to indicate when clients connect/disconnect (via socket.io). This only works for clients using the addon. It would be helpful to also see when clients fetch updates, including clients not using the addon. Without this logging it is hard to figure out if the remote updates are working, especially if the client is slow or has limited bandwidth.

Ideally, cordova-hcp server would log more details about addon clients. The following events should get logged:

  • connect and disconnect (already implemented)
  • fetch start
  • fetch complete
  • fetch error
  • update

For each event, include some details about the client:

  • device id (uniquely identify the client)
  • platform (iOS or Android)
  • model (such as iPhone 7)
  • current web version

For clients not connected via socket.io (not using the addon), requests for individual resources could still be logged, and perhaps some details about the client (platform and model) can be inferred from the user agent header of the request.

Yes, that can be helpful during the development. Thanks for the idea.

👋 Hi! Thank you for your interest in this repo.

😢 We are not using nordnet/cordova-hot-code-push-cli anymore, and we lack the manpower and the experience needed to maintain it. We are aware of the inconveniece that this may cause you. Feel free to use it as is, or create your own fork.

🔒 This will now be closed & locked.

ℹ️ Please see #79 for more information.