microsoft / react-native-code-push

React Native module for CodePush
http://appcenter.ms
Other
9k stars 1.48k forks source link

CodePush server downed and can not get clear code #2461

Closed hanzoow closed 1 year ago

hanzoow commented 1 year ago

Thanks so much for filing an issue or feature request! Please fill out the following (wherever relevant):

Currently my application using sync function to check and load code push. I catch status return by syncStatusChangedCallback then if it returned CodePush.SyncStatus.UNKNOWN_ERROR: i will alert to force user reload app to install code push (because sometimes user switch to another app and then back to my app, if i'm not implement that checking, it will rollback to old version).

But lately i saw that Code-Push server down several times and by my check it will alert and users could not use app anymore, that annoy!.

I want to know that if your server is down, like return code 500, can you gimme some solution to catch that code to skip alert to force user reload app in my case ?

Steps to Reproduce

  1. Fully installed code push
  2. Code push version downed with error code 500

Expected Behavior

What you expected to happen? Need to now your model return if your server downed

Actual Behavior

What actually happens? it runs on CodePush.SyncStatus.UNKNOWN_ERROR: without any clear model

  STACK TRACE AND/OR SCREENSHOTS

Reproducible Demo

Environment

(The more info the faster we will be able to address it!)

minyoung-jun commented 1 year ago

2456

This appears to be a similar situation to this issue.

microsoft-github-policy-service[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.

microsoft-github-policy-service[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.

microsoft-github-policy-service[bot] commented 1 year ago

This issue will now be closed because it hasn't had any activity for 15 days after stale. Please feel free to open a new issue if you still have a question/issue or suggestion.

microsoft-github-policy-service[bot] commented 1 year ago

This issue will now be closed because it hasn't had any activity for 15 days after stale. Please feel free to open a new issue if you still have a question/issue or suggestion.

microsoft-github-policy-service[bot] commented 1 year ago

This issue will now be closed because it hasn't had any activity for 15 days after stale. Please feel free to open a new issue if you still have a question/issue or suggestion.