Codepush App not installed - Messege When Trying to Install after distributing? - code-push

I Am really getting confused , it is APK Signing issue.
i created a new react native project ,
uploaded it on github.
then build it in app center.
and downloaded it.
but when i am trying to install it.
it shows APP NOT INSTALLED ERROR.

Build on your machine and upload the release to your device locally. This is usually a configuration problem that will appear whether you are using App Center or not. Should be easy to spot.

Related

I need a solution for RnAlarmNotification.h file not found issue in ios app on xcode

My React native app working fine two days ago but when I installed new library and did pod install then app is not running and showing error "RnAlarmNotification.h file not found" in ios app on xcode.
I tried to run application for implementing Stripe 3ds but app is not running. now I need to solve "RnAlarmNotification.h" file not found issue to further development.
Screen shot the error what issue I am facing.

Build release apk in React Native [duplicate]

This question already has answers here:
How can I generate an apk that can run without server with react-native?
(22 answers)
Closed 9 months ago.
I have started learning react native. I have built a demo app. I want to make a release build and install the apk in my physical device. Can anyone please provide any documentation regarding how to build an apk in react native?
For building the app you need to follow this answer from this thread:
How can I generate an apk that can run without server with react-native?
In this thread there is not specified to add a file named local.properties in your /android, there you need to set your SDK location. Just like this:
sdk.dir = C:\\Users\\USERNAME\\AppData\\Local\\Android\\sdk
For installing the app you need to install ADB, follow this tutorial:
https://developer.android.com/studio/command-line/adb
Don't forget to add the location where you installed the files to environment variables ( on Windows ).
Now you can use adb commands, so connect your device by usb cable.
On your phone, turn on Developer Options and activate USB debugging.
After this go to the location /android/app/build/outputs/apk/release inside your react-native project and run this: adb install app-release.apk
Now your app is installed on your device =)
More of this you can find in tutorials, there are many of them.

How to deploy codespush bundle on old targets when there are native changes on the new build

Before i continue, let me let you know that i know the code to deply to a targeted build for codepush
appcenter codepush release-react -a aountName/appName -d Production -m --description "CommentHere" -t versionName
I have tried to figure this out on my own and i have not been able to.
I have several versions of my app which i have deploy using CodePush and everything works well but I started having fears of crashes when i installed new packages on the latest build.
This implies the current code base would have new native differences as compaird to the old version.
The question is how can i deploy my new build with new native codes
and packages present to an old version of my app which does not have those
native packages without running into several crashes from all the users using the old version of the app...
I ask this cos i have a feeling if i push the new build with the new changes in UI and native chnages to the old version of my app, the app old app would crash.
If a bug comes in for an old version, how do I fix it and deploy it
for the old version only? Bugs may be critical and not everyone will
have the latest version of the app Or, the bug may only exist on a old
version of the app.
I await your response.
Code push will not affect any native code written within the Android or the iOS projects of a React-Native application. If you read the documentations carefully, it specifically says that it does not change / modify / update the native portion of the app.
Why?
This is because of the way the CodePush mechanism works. In essence, CodePush only stores and triggers the update of the JS bundle of the React-Native application.
This is why we wrap only the JS main app instance with CodePush HOC (Higher Order Component). This is what's happening when you do:
CodePush(MyApp); //wrapping the js bundle at app-root
So, unfortunately in your case, if there are native codes involved, regardless of deployment to a new or old version of the app, it has to be a AppStore / Playstore driven deployment.

How to fix optimazition error publish in play store

my apk is 1.4MB but error is "This APK results in unused code and resources being sent to users. Your app could be smaller if you used the Android App Bundle. By not optimizing your app for device configurations, your app is larger to download and install on users' devices than it needs to be. Larger apps see lower install success rates and take up storage on users' devices."
how to fix this error
It's only a warning, not an error.
For an app that small I wouldn't worry.
It's not something that's made its way into the Ionic ecosystem yet but I heard that if you open up your project in Android Studio and then do the build through there you can create an app bundle.
I'm not totally sure that its fully tested for Ionic so you might have issues with this, but Android have published a full guide:
https://developer.android.com/guide/app-bundle#get_started
This is what they say:
Download Android Studio 3.2 or higher—it's the easiest way
to add dynamic feature modules and build app bundles.
Add support for Dynamic Delivery
by including a base module, organizing code and resources for configuration
APKs, and, optionally, adding dynamic feature modules.
Build an Android App Bundle using Android Studio.
If you're not using the IDE, you can instead build an app bundle from the
command line.
Test your Android App Bundle by using it to generate APKs that
you deploy to a device.
Enroll into app signing by Google Play.
Otherwise, you can't upload your app bundle to the Play Console.
Publish your app bundle to Google Play.

Tips/help to debug no apk file

My environment :
Eclipse sdk 3.7.2
Worklight pluin 5.0.5
Android sdk 2.2
First I tried a simple Hello World, everything works fine, android native project was created and I see the corresponding apk file was generated after a build and deploy.
Next I imported a sample project, successfully got it run on the test (localhost) server, able to see the expected result on the android Mobile Browser Simulator but the problem now is I am not seeing the corresponding android apk file got generated (the android native project was created). No errors on the logs, Any idea what could be the problem? How one debug such a problem.
APK will be generated under \bin\ folder once you run your app for the first time.
Connect your Android device to dev machine via USB cable (assuming you got Android SDK etc installed), right click on Android project and do Run as->Android app.
The app will be installed and started on Android device. APK will be generated in \bin folder.
In general, you don't need the device, same thing can be done with emulator.
You can also do an export on the android application project. This is what you would do if you are looking at doing some key signing. This is the way you would want to export it if you are uploading to Google play or an enterprise app store.
Keep in mind, Worklight doesn't build your .ipa, .apk, or etc. It builds you compile ready resources. It will build you the folder structure and the project layers needed to build in the corresponding Native Environment (for apple, you would export to xcode, build it, and run).