Comments (12)
@emekalites it's not working in Android 7.1.1 also Android above 7.1.1
I'm tested with step :
- Set Schedule
- Close or Kill the App
- When notif is fired, I dismiss the notif, but the sound still not stop
from react-native-alarm-notification.
The problem still persists. It no longer works in the solution I suggested previously. @emekalites
@emekalites it's not working in Android 7.1.1 also Android above 7.1.1
I'm tested with step :
- Set Schedule
- Close or Kill the App
- When notif is fired, I dismiss the notif, but the sound still not stop
I'm having this problem.
Android 7.1 - Sony Experia Z5 Compact
from react-native-alarm-notification.
will work on that, thanks
from react-native-alarm-notification.
done in v1.1.0
from react-native-alarm-notification.
This does not seem to be working for me on 7.1 or 8.0, perhaps not on any version.
Calling ReactNativeAN.stopAlarm()
and then ReactNativeAN.deleteAlarm(...)
in the appropriate event handler seems to work correctly.
from react-native-alarm-notification.
@bsdunx Did you have tested on 7.1 or 8.0 ?
from react-native-alarm-notification.
7.1 via emulator and 8.1 on actual device.
from react-native-alarm-notification.
This problem is solved. But that's not the right way. Edit on /node_modules/react-native-alarm-notification/android/src/main/java/com/emekalites/react/alarm/notification/ANHelper.java add comment mark, line to:
/* -----> this.
//sound
if (!bundle.containsKey("play_sound") && bundle.getBoolean("play_sound")) {
Uri soundUri = getAlarmUri();
String soundName = bundle.getString("sound_name");
if (soundName != null) {
if (!"default".equalsIgnoreCase(soundName)) {
int resId;
if (mContext.getResources().getIdentifier(soundName, "raw", mContext.getPackageName()) != 0) {
resId = mContext.getResources().getIdentifier(soundName, "raw", mContext.getPackageName());
} else {
soundName = soundName.substring(0, soundName.lastIndexOf('.'));
resId = mContext.getResources().getIdentifier(soundName, "raw", mContext.getPackageName());
}
soundUri = Uri.parse("android.resource://" + mContext.getPackageName() + "/" + resId);
}
}
try {
ringtone = RingtoneManager.getRingtone(mContext, soundUri);
ringtone.play();
} catch (Exception e){
Log.e(TAG, "failed to play ringtone", e);
}
}
*/ ----> and this.
from react-native-alarm-notification.
Hola! So here's the deal, between open source and my day job and life and what not, I have a lot to manage, so I use a GitHub bot to automate a few things here and there. This particular GitHub bot is going to mark this as stale because it has not had recent activity for a while. It will be closed if no further activity occurs in a few days. Do not take this personally--seriously--this is a completely automated action. If this is a mistake, just make a comment, DM me, send a carrier pidgeon, or a smoke signal.
from react-native-alarm-notification.
I am also facing the same issue
from react-native-alarm-notification.
Any solution?
from react-native-alarm-notification.
Hello, @emekalites i have the same problem..
from react-native-alarm-notification.
Related Issues (20)
- Alarm custom data is not returned from getScheduledAlarms() HOT 2
- How do i set alarm at Particular Day of the Week (for example only alarm for Monday and Tuesday etc.) ? And How Do i set Alarm Every Day? HOT 1
- OnNotificationOpened not working in quit state / app killed HOT 4
- How can we add one more button in notification? HOT 2
- Not an alarm, just a notification HOT 2
- Snooze HOT 1
- Feat: Allow API to delete all the alarms HOT 1
- Not working on last version of React Native HOT 5
- Has_button is not working
- Alarm are not working when we close the app
- alarm are not working when we close the app HOT 1
- Typescript support
- Plugin with id 'maven' not found HOT 6
- Notification Navigation Problem
- EXPO
- TypeError: null is not an object (evaluating 'RNAlarmNotification.sendNotification')
- Alarms won't fire [react-native 0.68] [jdk 11] [gradle 7] HOT 1
- [BUG] Package wouldn't let app compile in Gradle 7x HOT 2
- notification not working in forground on iOS device
- Immediate notification works but Scheduling doesn't work HOT 1
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 react-native-alarm-notification.