Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change URL download on client side? #242

Open
duduccosta opened this issue Apr 18, 2024 · 4 comments
Open

How to change URL download on client side? #242

duduccosta opened this issue Apr 18, 2024 · 4 comments

Comments

@duduccosta
Copy link

Hello,

We currently use AppCenter codepush.
We want to change to have our own codepush server.

Even configuring this library, what is the correct process for changing server settings on the client side?
I'm using React Native.

Thanks.

@billxie1988
Copy link

billxie1988 commented May 10, 2024

Hello,

We currently use AppCenter codepush. We want to change to have our own codepush server.

Even configuring this library, what is the correct process for changing server settings on the client side? I'm using React Native.

Thanks.

Hi shm-open/code-push-server & shm-open/code-push-client can help you

@billxie1988
Copy link

billxie1988 commented May 10, 2024

  1. INSTALL code-push-server suggest to use docker
    config the dockcompose
  2. INSTALL code-push-client on you macbook this will let you resgiter you RN Apps to your own server
  3. add RN package "react-native-code-push": "^8.2.1"
    ios set the infoplist
<key>CodePushDeploymentKey</key>
	<string>xxxxxx</string>
	<key>CodePushServerURL</key>
	<string>http://x.x.x.x:xxxx/</string>

android app/src/main/res/values/string.xml

<resources>
    <string name="app_name">YOURAPPNAME</string>
    <string moduleConfig="true" name="CodePushDeploymentKey">xxxxxxxx</string>
    <string moduleConfig="true" name="CodePushServerUrl">your sever url</string>
</resources>

RN
import codePush from "react-native-code-push";
export default codePush(App);

On your mac os client code-push login http://xx.xxx.xxx.xxx:0000/

@duduccosta
Copy link
Author

Hello!

Thanks for reply!
And how can I create a bundle js?

On appcenter environment, we have the appcenter cli.
But without appcenter, how can I do it?

Thanks.

@billxie1988
Copy link

billxie1988 commented Nov 20, 2024

Hello!

Thanks for reply! And how can I create a bundle js?

On appcenter environment, we have the appcenter cli. But without appcenter, how can I do it?

Thanks.

The code-push-client will atuomaticly upload the RN project’s bundle To your sever,and the sever will push the new bundle to the apps. you only need install the client in your termial.Follow my suggest step.The Step3 will integrat the codepush on RN apps.with some inital code,it will pull the update from the custom server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants