microsoft / react-native-code-push

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

Codepush server blocked. #2751

Closed nolife08021 closed 2 months ago

nolife08021 commented 2 months ago

Steps to Reproduce

  1. Codepush failed in app (CodePush.checkForUpdate)
  2. failed to access (https://codepush.appcenter.ms/v0.1/status) in China

Expected Behavior

Successfully codepush in app.

Actual Behavior

What actually happens? Codepush server is blocked by China firewall , failed when trying to use CodePush.checkForUpdate()) 影像 (14)

jianxinzhoutiti commented 2 months ago

+1 https://api.appcenter.ms

ios add to Info.plist

CodePushServerURL ${CODE_PUSH_SERVER_URL}

android add to res/value/strings.xml

${CODE_PUSH_SERVER_URL}

You can try image

qimengfeidiao commented 2 months ago

Hello, why can’t I add it like this?

<string moduleConfig="true" name="CodePushServerURL">https://api.appcenter.ms</string>

[CodePush] An unknown error occurred. [CodePush] Network request failed Please help me, thank you

jianxinzhoutiti commented 2 months ago

你好,请问为什么我这样添加不上去呢?

<string moduleConfig="true" name="CodePushServerURL">https://api.appcenter.ms</string>

[CodePush] 发生未知错误。 [CodePush] 网络请求失败 请帮助我,谢谢

you moduleConfig="true" name="CodePushServerURL" edit name = "CodePushServerUrl" ,maybe ,I haven't tried

IlyaBausovAkvelon commented 2 months ago

Hi, Due to country specific policies and laws, we cannot guarantee that App Center works in all countries/regions. For some users in China region, Analytics and Diagnostics SDK data may experience significant delay or not make it to our servers based in the United States.

Here is an article about that: https://learn.microsoft.com/en-us/appcenter/general/app-center-security