cordova plugin add cordova-plugin-android-fragmentactivity --save
or
phonegap plugin add cordova-plugin-android-fragmentactivity
No manual configuration required.
This plugin comes bundled with a CordovaFragment (which is a Fragment similar to CordovaActivity) and a MainActivity that extends AppCompatActivity and adds CordovaFragment using FragmentTransactions.
AndroidManifest.xml is automatically updated to use the new MainActivity.
Based on cordova-android-fragments (https://github.com/rajivnarayana/CordovaFragments)
- Fix bug where fragment launched twice
- Add support for onNewIntent
- Apply some fixes from main cordova repo
- Add fix to ensure only root task runs
- Merge changes to fix multiple issues (thanks https://github.com/mediathand)
- Migrate to androidx
- Fix missing import
- Add onActivityResult callback
- Merge FrameLayout change
- Merge ${mypackage} fix
- Fix stupid cordova-android 7 detection
- Attempt to avoid crash only seen on Galaxy J1 Ace (5.1.1)
- Experimental support for cordova-android 7
- Increased dependency versions
- Added missing method to activity to handle permission request results
- Correct log message
- Add history to README
Initial release