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

cordova-plugin-play-default-sounds

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-play-default-sounds

Cordova Plugin to Play default Sounds

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-40%
Maintainers
1
Weekly downloads
 
Created
Source

PlayDefaultSounds

A Cordova plugin to play default system Sounds (Android and iOS)

Installation

    $ cordova plugin add cordova-plugin-play-default-sounds

Usage

The Plugin is accessible via a global window.PlayDefaultSounds Variable or the build in Ionic Wrapper:

import PlayDefaultSounds from 'cordova-plugin-play-default-sounds';

Api

play

Variables
  • code (optional, but needed for ios (See Overview here))

This function plays the default Notification Sound for Android. For iOS the Code is used.

// Android:
PlayDefaultSounds.play();

// iOS
PlayDefaultSounds.play(1003);

Troubles?

If you have any Problems or need help, feel free to open an Issue!

Keywords

FAQs

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