Giter Club home page Giter Club logo

Comments (6)

katzer avatar katzer commented on June 7, 2024

Hello,

which platform?

By the way, its possible to play sounds platform independently through html5 media api without any need of native plugins.

from cordova-plugin-local-notifications.

katzer avatar katzer commented on June 7, 2024

The sound feature for Android isn't implemented. It works only for iOS devices (with .caf files).

from cordova-plugin-local-notifications.

Beefsteve avatar Beefsteve commented on June 7, 2024

Weirdly the sound for iOS is now not working as well. (Two versions ago, or maybe 0.6, I don't know - sound option for iOS was working - it ignored the sound file I put in directory but it played standard notification sound which I liked... .)
Now it is just silent...

window.plugin.notification.local.add({
id: 15, // is converted to a string
date: _60_seconds_from_now,
message: 'Hello world!',
title: 'Check that out!',
sound: 'horn.caf',
foreground: 'foreground',
background: 'background'
});

Maybe I am doing something wrong, I don't know. Thank you.

edit:

**Here are the old files: http://www2.zippyshare.com/v/8450361/file.html (*.h, .m and the .js file)

Unfortunately I was unable to replace the old files with the new. If I do that nothing works. Hoping for help.
In the recent version here on github the sound will not play on iOS

from cordova-plugin-local-notifications.

katzer avatar katzer commented on June 7, 2024

Have you checked your notification center settings? In iOS 7 all app notification sounds are off by default.

from cordova-plugin-local-notifications.

Beefsteve avatar Beefsteve commented on June 7, 2024

Yes, it works now... I created several iOS Projects now and I think I found the issue... on every project that has a uppercase letter on it's bundle ID sound will not work. Just a theory. But so far every project with a uppercase in front did not work
com.name.Yourapp <- will not work
com.name.yourapp <- will work

or maybe not... I don't know... on some projects it works and on some it does not. I don't know what I'm doing wrong.

edit: So now it works. The sound was activated in the not. center settings, but as I archived and re-installed for app-submission iOS set the sound off again, ... so simple, so much time spend on this... thank you.

from cordova-plugin-local-notifications.

katzer avatar katzer commented on June 7, 2024

OK, you are welcome.

from cordova-plugin-local-notifications.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.