Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cordova-plugin-android-fragmentactivity

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-android-fragmentactivity

An android plugin that provides a replacement activity to the default activity to start a cordova application with MainActivity as a Fragment Activity. Useful when you want to add native views on top of cordova webview.

  • 2.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Installation

cordova plugin add cordova-plugin-android-fragmentactivity --save

or

phonegap plugin add cordova-plugin-android-fragmentactivity

Usage

No manual configuration required.

How it works

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.

Credits

Based on cordova-android-fragments (https://github.com/rajivnarayana/CordovaFragments)

History

2.2.1

  • Fix bug where fragment launched twice

2.2.0

  • Add support for onNewIntent
  • Apply some fixes from main cordova repo

2.1.0

  • Add fix to ensure only root task runs

2.0.0

1.0.0

  • Migrate to androidx

0.0.9

  • Fix missing import

0.0.8

  • Add onActivityResult callback

0.0.7

  • Merge FrameLayout change
  • Merge ${mypackage} fix

0.0.6

  • Fix stupid cordova-android 7 detection

0.0.5

  • Attempt to avoid crash only seen on Galaxy J1 Ace (5.1.1)

0.0.4

  • Experimental support for cordova-android 7
  • Increased dependency versions

0.0.3

  • Added missing method to activity to handle permission request results

0.0.2

  • Correct log message
  • Add history to README

0.0.1

Initial release

Keywords

FAQs

Package last updated on 11 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc