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

How do I create two separate apps

Open rizwanahmed19 opened this issue 9 years ago • 2 comments

So I was going through the getting started section and it says that I should create two separate CodePush applications if I wanna target both iOS and Android. What does that mean? How do I create a code push application for each platform?

Sorry for this naive question.

rizwanahmed19 avatar Nov 14 '17 23:11 rizwanahmed19

It means that if you would like the application you're using CodePush with to target both iOS and Android, we recommend creating two "different" app instances for your app within CodePush. We say this because using the same app for both iOS and Android can cause installation exceptions. This is because CodePush's update packages for iOS and Android will contain different content. In order to create a CodePush app for each platform we recommend using the following commands:

code-push app add MyApp-Android android <platform>
code-push app add MyApp-iOS ios <platform>

Zakeelm avatar Nov 15 '17 00:11 Zakeelm

@Zakeelm Thanks a lot

rizwanahmed19 avatar Nov 15 '17 10:11 rizwanahmed19