New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

capacitor-notification-progressbar

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capacitor-notification-progressbar

Show download progress in notification

  • 0.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

capacitor notification download progress plugin

Show download progress in notification

work in progress

The work for this plugin is in progress (Support Android done) try to support iOS and web (Any help is appretiated)

Supported platforms

  • Android
  • iOS

Installation

npm install capacitor-notification-progressbar

Android

npx cap sync android

After you install the plugin, locate your MainActivity.java (can be found in /android/app/src/main/java/path/to/my/app/MainActivity.java)

import plugin path

  • import tn.converto.plugins.notification.download.progress.NotificationDownloadProgress;

And add Plugin class to init method

  • add(NotificationDownloadProgress.class);

Example

import tn.converto.plugins.notification.download.progress.NotificationDownloadProgress;

public class MainActivity extends BridgeActivity {
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // Initializes the Bridge
    this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{
      // Additional plugins you've installed go here
      // Ex: add(TotallyAwesomePlugin.class);
      add(NotificationDownloadProgress.class);
    }});
  }
}

Importing the plugin

import { Plugins } from '@capacitor/core';
const { NotificationDownloadProgress } = Plugins

Methods

  • Create the notification
NotificationDownloadProgress.create({
    contentTitle: 'Notification content title',
    contentText: 'Notification content text',
    destroyOnDone: false
})

Methods

  • Create the notification
NotificationDownloadProgress.updateProgress({
    progress: 50
    doneTitle: 'Notification done title',
    doneText: 'Download complete'
})

Keywords

FAQs

Package last updated on 03 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