I am developing an app with expo and push notification works fine but without sound and it doesn't popup..
Note: it only vibrates but without notification sound.
My client side
if (Constants.isDevice) { const { status: existingStatus } = await Permissions.getAsync(Permissions.NOTIFICATIONS); let finalStatus = existingStatus; if (existingStatus !== 'granted') { const { status } = await Permissions.askAsync(Permissions.NOTIFICATIONS); finalStatus = status; } if (finalStatus !== 'granted') { alert('Failed to get push token for push notification!'); return; } token = await Notifications.getExpoPushTokenAsync(); console.log(token); this.setState({ expoPushToken: token }); } else { alert('Must use physical device for Push Notifications'); } if (Platform.OS === 'android') { Notifications.createChannelAndroidAsync('notification-sound-channel', { name: 'Notification Sound Channel', sound: true, priority: 'max', vibrate: [0, 250, 250, 250], }); }
My server side is php laravel: https://github.com/Alymosul/exponent-server-sdk-php
$notification = ['title' => 'test title','body' => 'test body''channelId' => 'notification-sound-channel',];
I also tested it with expo Push notifications tool: https://expo.io/notifications and it works the same (vibration without sound or popup)
environment
expo: "^37.0.8",
SDK version: 27,
Testing device android version: 9