react-native-code-push icon indicating copy to clipboard operation
react-native-code-push copied to clipboard

Set serverUrl but it didn't work

Open yang24201 opened this issue 8 years ago • 1 comments

Steps to Reproduce

  1. Set serverUrl in Java code with constructor method

Expected Behavior

What you expected to happen? Expect the serverUrl will be set with my own server.

Actual Behavior

What actually happens?

But, it didn't work, and still the default server url

  STACK TRACE AND/OR SCREENSHOTS

Reproducible

I want to use my own code-push server, so I set my server url using new CodePush(BuildConfig.CODEPUSH_KEY, getApplicationContext(), BuildConfig.DEBUG, R.string.codepush_server)

But, this didn't work, and the server url still the default https://codepush.azurewebsites.net/

Environment

  • react-native-code-push version: 5.4.2
  • react-native version: 0.57.3
  • iOS/Android/Windows version: android 27.0.3
  • Does this reproduce on a debug build or release build? Both of them.
  • Does this reproduce on a simulator, or only on a physical device? Both of them

yang24201 avatar Nov 19 '18 04:11 yang24201

I'm sorry, this is my problem! I set the serverUrl with an empty string. This issue should be closed.

yang24201 avatar Nov 19 '18 07:11 yang24201