public void beep()

in src/android/Notification.java [154:177]


    public void beep(final long count) {
        cordova.getThreadPool().execute(new Runnable() {
            public void run() {
                Uri ringtone = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
                Ringtone notification = RingtoneManager.getRingtone(cordova.getActivity().getBaseContext(), ringtone);

                // If phone is not set to silent mode
                if (notification != null) {
                    for (long i = 0; i < count; ++i) {
                        notification.play();
                        long timeout = BEEP_TIMEOUT;
                        while (notification.isPlaying() && (timeout > 0)) {
                            timeout = timeout - BEEP_WAIT_TINE;
                            try {
                                Thread.sleep(BEEP_WAIT_TINE);
                            } catch (InterruptedException e) {
                                Thread.currentThread().interrupt();
                            }
                        }
                    }
                }
            }
        });
    }