Nabarag Paul
Nabarag Paul

Reputation: 319

Debug apk is working fine but after sign it and generate release apk , its showing a white blank screen in cordova ionic project

I have created a debug apk by running "ionic build android" and then signed the apk with keystore file and password and ran " ionic build android --release" . now the release apk is not working in android jellybean (only showing white blank screen) but its working in android lolypop .

there is no error in console.

cordova version is 4.2.0 cordova-android version is 3.6.4

I don't have cordova whitelist plugin in my project . if i tried to install whitelist plugin it says plugin dosen't support this cordova-android version.

My projects has "access origin = "*" in config.xml and

uses-permission android:name="android.permission.INTERNET" &

uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" in manifest file

Any update regarding the issue will be welcomed .

Upvotes: 3

Views: 4580

Answers (3)

Toukea Tatsi
Toukea Tatsi

Reputation: 199

Once your app is signed, Android does not write any log for this app (i think that is for security reasons.)

Only unsigned apps can be debugged. Imagine that your production APK can be debugged, every user could connect their phones to the computer and know what really is happening inside.

Upvotes: 1

Nabarag Paul
Nabarag Paul

Reputation: 319

OK I got the problem and solved it . I am sharing this for one who will face the same problem in future

Actually I was using material design and injected "ionic-material" in the main module in app.js file . Somehow it won't work in pre-lolypop version . I also don't know the exact reason why it dosen't throw an error in debug version but in release version. What I did just removed the ionic-material from my project and modified my code accordingly and it ran in every version of android . I should work on how can I implement material design in pre-lolypop version also but that is another story . Thank you .

Upvotes: 3

Nabarag Paul
Nabarag Paul

Reputation: 319

here is how I include my js files

<script type="text/javascript" src="lib/ng-cordova.min.js"></script>
<script src="cordova.js"></script>
<script src="lib/popup.js"></script>
 <script src="https://cdn.rawgit.com/zachsoft/Ionic-Material/master/dist/ionic.material.min.js"></script>  


<script src="lib/ion-md-input/js/ion-md-input.min.js"></script>

<script src="lib/jquery.min.js"></script>

<script src="http://maps.googleapis.com/maps/api/js?libraries=places&sensor=true"></script>
<script type="text/javascript" src="lib/ionic-core.js"></script>
<script type="text/javascript" src="lib/ionic-push.js"></script>
<script src="lib/PushNotification.js"></script>
<script src="lib/ng-map.min.js"></script>
<script src="lib/lodash.min.js"></script>
<script src="lib/angular_google_map.js"></script>
<script src="lib/markerwithlabel.js"></script>
<script src="ngautocomplete.js"></script>


<!--  app's js -->
<script src="js/app.js"></script>
<script src="js/controllers.js"></script>
<script src="js/services.js"></script>

Upvotes: 0

Related Questions