Comments (6)
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.
The sound feature for Android isn't implemented. It works only for iOS devices (with .caf files).
from cordova-plugin-local-notifications.
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.
Have you checked your notification center settings? In iOS 7 all app notification sounds are off by default.
from cordova-plugin-local-notifications.
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.
OK, you are welcome.
from cordova-plugin-local-notifications.
Related Issues (20)
- UIWebView error when submiting to the app store
- compile() deprecated since gradle 8.0 in /src/android/build/localnotification.gradle HOT 13
- When the notification is displayed the code in the subscription event 'trigger' & 'click' hasn't been executed on iOS even app running either foreground/background. HOT 1
- Getting a build error after migrating our Ionic 5 app from Cordova 10 to Cordova 11 LOCAL NOTIFICATIONS HOT 8
- Android Build for Android Platfom 10.1.2 or 11.0.0 Crashes the app. HOT 16
- iOS: Location Trigger Notification No Longer Working
- Local Notifications Trigger events Not working on Android 12 HOT 1
- Android 12 (SDK 31+): Tap on notifications only opens app when notifications are grouped. HOT 50
- bug: Gradle 7 compatibility HOT 6
- Local notifications does not subscribe to events when the notification is triggered in the background or when device is Locked on IOS Device 16.1.2 OS HOT 2
- Local Notifications Subscribe to events when app is in the background IOS: Help please
- Small Icon and Trigger Notification in Android 12
- Play custom audio files on Ionic Cordova Local Notifications IOS
- Android 12+ notification permissions not requested and showing as blocked HOT 10
- Apps Now Having Problems Adding Plugin HOT 1
- Plugin get installed, app get compiled and launched on android, but notification is just not working. HOT 1
- Notification group with actions at a particular time
- When I click notification app crashes HOT 2
- request permission is never fired at all on android 13 HOT 4
- NullPointerException from isInForeground
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-local-notifications.