Question:
1. Is it possible to play a sound file when a local notification scheduled via the Pushwoosh SDK is fired?
2. Do local notifications support notification channels on modern Android (8.0 / API 26 and above)?
Answer:
1. No. The Pushwoosh SDK does not support custom sounds for local notifications: LocalNotification.Builder exposes only message, delay, tag, link, banner, small/large icon and extras, with no sound option. Custom sounds are supported for remote push notifications sent from Pushwoosh.
2. Local notifications are delivered on Android 8.0+ as usual, but you cannot specify a notification channel for them through the SDK. If you need your local notifications to land in the same channel as Pushwoosh pushes, replicate the Pushwoosh channel-ID pattern (pushwoosh_<channel name>, lowercased with spaces replaced by underscores) when you create your own channel — see Setting channel name for local notifications.
Comments
0 comments
Please sign in to leave a comment.