Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest Cordova and Android 6.1 crashes the app when it tries to play the custom sound. #1178

Closed
epetre opened this issue Dec 27, 2016 · 3 comments
Labels

Comments

@epetre
Copy link

epetre commented Dec 27, 2016

Using the stack below (don't think the ionic2 part is relevant but eh) whenever the sound exists on the device, it crashes the whole app when sending a local notification. I think it's crashing while trying to play it since if I use a sound that doesn't exist, it just doesn't play it but still works without the sound. Also, It used to work before.

LocalNotifications.schedule({
                title: 'title',
                text: 'message',
                smallIcon: 'res://systemicon.png',
                icon: 'some_image_url',
                sound: ('file://assets/notification.mp3'),
                data: { 
                  id: 788,
                  type: 'new_message'
                }
              });
  • Android 6.1

Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.4
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
Ionic App Scripts Version: 0.0.48
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: macOS Sierra
Node Version: v4.4.3
Xcode version: Xcode 8.2.1 Build version 8C1002

@epetre epetre changed the title Latest Cordova and Android 6.1 crashes when it tries to play the custom sound. Latest Cordova and Android 6.1 crashes the app when it tries to play the custom sound. Dec 27, 2016
@Adriano72
Copy link

Same for me

@rwillett
Copy link
Collaborator

Use template #1188 as there's not enough information here.

I can state that I just created and played a custom sound on Android 6 quite easily though.

@katzer
Copy link
Owner

katzer commented Oct 31, 2017

has been fixed

@katzer katzer closed this as completed Oct 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants