Closed DeepakSuryaKB closed 1 year ago
Thanks for the issue. I am going to close this as this is not a bug in Ionic Framework. As per the Capacitor 3 Migration Guide, you need to install the @capacitor/app
plugin in order for the hardware back button to work.
If you encounter any other issues, please post them on the Ionic Forums first. This repo is dedicated to bugs and features for Ionic Framework. Ionic Framework does not manage any of your app's native dependencies, so the amount of help we can provide will be limited. Thanks!
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Prerequisites
Ionic Framework Version
Current Behavior
Splash screen goes white after few seconds on opening the android App. Hardware back button not working in Android App. Both were working fine in capacitor version 2
My package.json BEFORE upgrading to capacitor 3
My package.json AFTER upgrading to capacitor 3
Expected Behavior
According to Official capacitor 3 upgrade guide
MainActivity.java Should be like this
This Builds the app Successfully but the when opened in virtual or real device fails and stops working
I currently use the above approach to Successfully build and run the application
Steps to Reproduce
CapacitorConfig.json
Variables.gradle
Issue can be re produced with the following configuration settings above
Code Reproduction URL
No response
Ionic Info
Ionic:
Ionic CLI : 6.20.1 (C:\Users\Surya\AppData\Roaming\npm\node_modules\@ionic\cli) Ionic Framework : @ionic/angular 5.9.4 @angular-devkit/build-angular : 13.3.8 @angular-devkit/schematics : 12.2.17 @angular/cli : 13.2.6 @ionic/angular-toolkit : 4.0.0
Capacitor:
Capacitor CLI : 3.6.0 @capacitor/android : 3.6.0 @capacitor/core : 3.6.0 @capacitor/ios : 2.5.0
Utility:
cordova-res : 0.15.4 native-run : 1.6.0
System:
NodeJS : v16.15.1 (C:\Program Files\nodejs\node.exe) npm : 8.12.1 OS : Windows 10
Additional Information
As the Code Base is private Could not able to link my repo. Creating this issues after trying most of the solutions given online. Any suggestion from Ionic and Capacitor team will be helpful