Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 30353

Expo push notification sound and popup doesn't work

$
0
0

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 (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' => $this->'test title','body'  => $this->'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


Viewing all articles
Browse latest Browse all 30353

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>