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 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