ionic APK generation old

sudo chmod -R 777 android


*run ionic app in system


1) ionic serve
Run on web


*check is this device is connected or not
2) adb devices
to run

3) export ANDROID_HOME="/home/nss/Android/Sdk"

4) ionic cordova run android (debug apk)

5) ionic cordova build android (debug apk)

6) ionic cordova platform addd android
add platforms command

7) ionic cordova build android --prod --release
(/home/nssdt022/VisitorappIonic5project/visitorapp/platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk) like release apk will be generated here you go to that path and paste keytool here and then run below command 

8) jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore orangerover.keystore app-release-unsigned.apk orangerover

9)  externel terminal
--------------------------------
1. cd Android/Sdk/build-tools/26.0.1

2. ./zipalign -v 4 app-release-unsigned.apk orangerover19thapr.apk


*generate apk key tool generation

1. keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000


keytool -genkey -v -keystore Nakhas.keystore -alias Nakhas -keyalg RSA -keysize 2048 -validity 10000
keytool -genkey -v -keystore Posidex.keystore -alias Posidex -keyalg RSA -keysize 2048 -validity 10000
keytool -genkey -v -keystore orangerover.keystore -alias orangerover -keyalg RSA -keysize 2048 -validity 10000
password:orange



2.ionic cordova build android --prod --release

It will generate one folder and it will show that folder location
you will gofor that location what it will show

3.jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore everesthome.keystore android-release-unsigned.apk everesthome
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore Nakhas.keystore app-release-unsigned.apk Nakhas
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore orangerover.keystore app-release-unsigned.apk orangerover
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore Posidex.keystore app-release-unsigned.apk Posidex

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore orangerover.keystore app-release-unsigned.apk orangerover
externel terminal
--------------------------------
1. cd Android/Sdk/build-tools/26.0.1

2. ./zipalign -v 4 app-release-unsigned.apk orangerover19thapr.apk


external terminal permissions command :-

sudo chmod -R 777 /home/nss/Desktop/node_modules/cordova-android

when deprication problem occur follow the below commands

1. cordova platform clear android
2. cordova platform rm android
3. cordova platform add android
4. rm -rf ./node_modules

https://medium.com/@ankushaggarwal/push-notifications-in-ionic-2-658461108c59


Server key:

AAAAzgOiMGc:APA91bEBI39tYM4G5-zgpkeKtqXaR-HScA6jfhNytUN9hCoHCnU9dOz1j0V0IuzP9r3R1NnnG0EAoSob2I-Rg8GOXvC2G-d-jlJNQIqOpEuYEGnW7HSk-v4T7IMZLYQHjBu1EGKRvw00



Sender ID:

884824223847

===================================================
Declare the FCM version in config.xml like this:
<plugin name="phonegap-plugin-push" spec="^2.1.3">
    <variable name="FCM_VERSION" value="11.6.2" />
</plugin>
If that doesn't work, some of the steps of I use to solve pesky Ionic build problems are:
  • rm -rf node_modules
  • ionic cordova platform rm
  • rm -rf platforms
  • rm -rf plugins
  • npm install
  • ionic cordova platform add
===============================================================

keytool -genkey -v -keystore orangerover.keystore -alias orangerover -keyalg RSA -keysize 2048 -validity 10000











jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore orangerover1.keystore app-release-unsigned.apk orangerover1
./zipalign -v 4 app-release-unsigned.apk orangeroverOct-19.apk

5. npm install
6. again follow the above proceduser




<div class="row header">
<div class="col">Date</div>
<div class="col">Email</div>
<div class="col">Product Name</div>
<div class="col">Scratch No</div>
<div class="col">Reseller Code</div>
<div class="col"><ion-checkbox #maincb [checked]="mainCheckbox[_page-1].checked"
(click)="selectOrUnselectAll(maincb)"></ion-checkbox></div>
</div>
<div class="row" *ngFor="let data of tonerData ">
<div class="col">{{data.HitDate.substring(0,10)}}</div>
<div class="col">{{data.UserEmail}}</div>
<div class="col">{{data.ProductName}}</div>
<div class="col">{{data.ScratchNumber}}</div>
<div class="col">{{data.ResellerCode}}</div>
<div class="col"><ion-checkbox #cb
[attr.id]="i"
[checked]="data.checked"
(click)="updateReturnsList(cb,data.UserEmail,data.HologramNumber)">
</ion-checkbox></div>
</div>


Comments

Post a Comment

Popular posts from this blog

How to Add Firebase Analytics to Your NativeScript Mobile App

sidemenu refresh through events

push multiple data in array(select and disselect items in array)