Skip to content

Correct Example for soundName #119

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

Closed
objectiveSee opened this issue May 12, 2020 · 2 comments
Closed

Correct Example for soundName #119

objectiveSee opened this issue May 12, 2020 · 2 comments

Comments

@objectiveSee
Copy link

Question

It is unclear from the documentation what type of value to pass to soundName parameter when creating a push with scheduleLocalNotification. I have my file in assets/bubble.wav so I have tried various permutations such as bubble, bubble.wav, assets/bubble.wav, and assets/bubble. Can anyone clarify? Does it need to be a file asset? Thank you!

const details = {
    fireDate: sendTime,
    alertTitle: title,
    alertBody: message,
    isSilent: false,
    userInfo: data,
    soundName: 'bubble',
    // applicationIconBadgeNumber: 69,
  };
  logger.info(`sending local notification: ${JSON.stringify(details, '  ', '  ')}`);
  PushNotificationIOS.scheduleLocalNotification(details);
@TommyLeong
Copy link

@objectiveSee Do oyu manage to find out what are the format type required here? Thank you.

Naturalclar pushed a commit that referenced this issue Oct 30, 2020
@Naturalclar
Copy link
Collaborator

There's now a sample for using sound in the example repository 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants