I'm trying to deploy my first (very generic) app built using Ionic. According to the docs for deployment, I'm supposed to use some plugins. However, other sources suggest that I'm supposed to install Google's IDE called Android Studio and create an APK file.
I can't judge which approach is most valid nor if the one is an obsoleted version of the other. And we know how fast the wheels rotate in JS world...
NB. I'm confident in programming in general, I know Angular and have experience with deployments as such. In this case, I'm not looking to set up CI nor testing. I simply want my first app to be reachable through the store.
My suggestion would be to make a build: ionic cordova build android. Next sign it using the command line.
https://developer.android.com/studio/publish/app-signing.html
Related
When you want to test your android ionic app and point it to a test server (and you want others to be able to test it as well), what's the best practice approach for this?
Can you have the app check if it's running as a test release, and if so, use the test server? Or is there some better way to do this?
EDIT: I would like to publish the app to the Google Play store, and if it's a test release, have the app use the test server, but if it's a production release, then the app would use the production server.
If I understood you correctly, you can use angular environment (baseUrl) like in usual angular web-app, and just add --prod or --test as a parameter.
for example:
ionic capacitor copy android --prod
i have just finished coding of my android app and it is time to built it's apk but i want to create it's iOS version ipa to. i know i have to work on XCode on MAC for getting it's ipa output but i don't have any iOS device. nothing about Apple. so i want to use alternative ways like CodeMagic but i am new on development so it seems creating an ipa output will take a long time for me. in addition i didn't make any stuffs needs to be done for an iOS app can launch. for example i am using Firebase services but i only made it's android settings, didnt set anything about it's iOS version. so i have to do lots of things for creating my flutter project's iOS version and need time. at this point i have a question:
Can i built my app's iOS version after creating it's android version without make any settings for iOS? i want to built it's android apk or appbundle as soon as possible and i want to do it's iOS settings and built it's ipa later. is that possible? thaks for your helps.
Based on my experience... you'll have to setup the iOS separately to successfully build it.
For example when using firebase you'll need to add the GoogleServices file using Xcode.. or when using google maps you'll also need to add the api key on the appdelegate file.
I'm trying to figure out the CI portion that provided by AppCenter. I've implemented CodePush for my app and please correct me if my understanding is wrong.
We build the native android app and generate a signed apk.
Release the generated signed apk to playstore
execute command to upload bundle appcenter codepush release-react -a <owner>/<android-app> -d Production
The above are generally the way I understand CodePush and I've tested and working fine.
Now I've noticed that we can integrate our github project branch to appcenter, and whenever there is a git push, AppCenter will build it automatically and we can configure to release to playstore automatically.
Now the part I don't understand is, is this CI auto build by AppCenter actually nothing to do with CodePush?
If now my situation is only having updates on JS code side, actually when I git-push to repo, there isn't a need to auto-release to playstore right?
Correct, Build and Push are separate services in App Center. Build does the binary build of your app while CodePush simply updates the JavaScript and related code in an Apache Cordova or React Native. They're separate workflows and it seems you want to trigger them separate ways.
If you're using CodePush, you can't also use Build to auto build and deploy the native app to devices, you're duplicating work. I'm not an expert, but you probably want to manually deploy your builds whenever you make changes to the native side of the app (which should be rarely, right?) - like when there's major updates to the native framework or new plugins added to the native app
Problem:
Automation of application uploading after successful promotions. Typically easily done with APK and using gradlew scripts.
However, since App bundles are clearly the direction of the future and have many benefits we are moving to deploying with app bundles. We do not want to upload these manually.
I was wondering if anyone has run into this issue and how they resolved it? Initially, I hoping for a gradle wrapper script but I don't believe this will be available for awhile.
The route I'm currently heading is leading me to write a custom script to deploy using this following api.
https://developers.google.com/android-publisher/api-ref/edits/bundles/upload
Edit: https://fastlane.tools
I ended up choosing fastlane for now for simplicity and its robust reputation. Had aab uploading done in a matter of minutes. So far highly recommend.
EDIT: Ultimately, I ended up letting fastlane only handle aab uploads by getting the latest artifact from the successful build and moving it into an empty fastlane project. From there it requires minimum parameters/variables to be able to successfully deploy to google play WITHOUT needing to integrate fastlane into your Android Studio project.
I am new to react-native app development. I wanted to know how can a developed app be shared between other developers without having a local dependency. Is an apple developer account needed for a test build to be shared in ios as well? How can the test build be created?. I wanted the build to be created and downloaded on any ios device or android for testing purpose and without having depending any of the local code changes.So the build downloaded should not get updated after any code change done after that.
Is there an easy way to do it?
To share a release build for Android please follow this guide Generating Signed APK.
But for iOS you gonna need a Apple Developer account, I don't know the whole process exactly.