ios icon indicating copy to clipboard operation
ios copied to clipboard

No sound or vibration onto new notifications in Iphone XS

Open Bad-Listener opened this issue 3 years ago • 5 comments

Hello all!

I have setup the package, following all instructions. I am coming here from react-native-push-notifcation (everything was working perfectly but had to update and use this package for iOS), and just started using this module for iOS notifications

I can receive notifications in every app state (foreground, background, app closed) and act on them perfectly.

The only thing that does not happen is vibration or sound when the notification comes in device...

I double checked that I followed every instruction. I am referring to remote notifications from Firebase.

Please help!

Bad-Listener avatar May 26 '21 14:05 Bad-Listener

+1

AsABarranco avatar Oct 14 '21 14:10 AsABarranco

+1

AliuDardan avatar Oct 30 '21 18:10 AliuDardan

+1 iPhone 5S

Critically avatar Apr 11 '22 00:04 Critically

Set 'sound' when sending a message

showtan001 avatar Jan 09 '23 06:01 showtan001

@showtan001 where need to add this 'sound'? could you explain please?

Arkan4ik avatar Feb 01 '23 07:02 Arkan4ik

I am using firebase_admin in python3. Here is an example of how to send an ios notification with a sound

from firebase_admin import credentials, messaging

firebase_admin.initialize_app(credential=cred, name=app) message = messaging.Message( notification=messaging.Notification( title=title, body=message, ), android=messaging.AndroidConfig( notification=messaging.AndroidNotification( channel_id=CHANEL_ID.get(service) ) ), apns=messaging.APNSConfig( payload=messaging.APNSPayload( aps=messaging.Aps( sound=messaging.CriticalSound( name='default' ) ) ) ), data=data, token=token, ) firebase_response = messaging.send(message, app=firebase_admin.get_app(app))

SumDanil avatar Dec 22 '23 06:12 SumDanil