Native Ringtones


The plugin helps get the native ringtones list on Android or IOS devices. And you can also use this plugin to play or stop the native ringtones and custom ringtones(added in the www folder).



If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic's experts offer official maintenance, support, and integration help.

Contact Us Today!

Ionic 手机铃声 Native Ringtones插件的安装(Installation)

ionic cordova plugin add cordova-plugin-native-ringtones npm install @ionic-native/native-ringtones
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
ionic enterprise register --key=YOURPRODUCTKEY npm install @ionic-enterprise/native-ringtones

Ionic 手机铃声 Native Ringtones插件支持的平台(Supported Platforms)

  • Android
  • iOS

Ionic 手机铃声 Native Ringtones插件的用法(Usage)

import { NativeRingtones } from '@ionic-native/native-ringtones/ngx';

constructor(private ringtones: NativeRingtones) { }

this.ringtones.getRingtone().then((ringtones) => { console.log(ringtones); });