HomeiOS DevelopmentCan I customise each the notification sound and vibration for push notifications...

Can I customise each the notification sound and vibration for push notifications in an Expo React Native app on iOS and Android?


Query

I am growing a cellular software utilizing Expo (React Native) and I need to customise each the notification sound and vibration sample when the app receives push notifications.

What I am making an attempt to attain

  • Play a customized sound when a push notification is acquired.
  • Set off a customized vibration sample together with the notification.
  • Help this performance on each iOS and Android.

Present setup

  • I am utilizing Expo managed workflow.
  • Notifications are being despatched through Expo Push Notification service.
  • I’ve configured a customized Android notification channel utilizing setNotificationChannelAsync.

What I’ve discovered up to now

  • On Android, it appears potential to customise the vibration sample utilizing vibrationPattern in setNotificationChannelAsync.
  • On iOS, notification sound customization could require bundling a .caf or .wav file with the app.
  • iOS appears to not enable direct management over the vibration sample, however could vibrate routinely if a sound is performed.

Questions

  1. Is it potential to completely customise each sound and vibration for push notifications on each platforms utilizing Expo (with out ejecting)?
  2. If not, what are the restrictions and is there a technique to obtain this utilizing EAS Construct or one other technique whereas staying within the managed workflow?

Surroundings


Any insights or examples can be drastically appreciated!

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments