Skip to content

Correct Example for soundName #119

Closed
@objectiveSee

Description

@objectiveSee

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions