Skip to content

iOS default sound #124

@nimdanet

Description

@nimdanet

I'm having trouble with iOS default sound. If I don't pass any soundName as parameter, notification do appear but don't play any sound (regardless if app is on foreground or background). When I was writing my own code I had to manually call soundName = UnityEngine.iOS.LocalNotification.defaultSoundName but in your code this does not seems to work. I changed your line to this: notification.soundName = (soundName != null) ? soundName : UnityEngine.iOS.LocalNotification.defaultSoundName; but my iphone refuse to play any sound. Custom sound plays nice though. Do you know how can I fix this?

Unity 2018.1.9f1
Xcode 10.1
iPhone 7 iOS 12.1.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions