0

I want my app to receive WhatsApp messages, check the content (I'm planning to do some deep learning methods using the message content) and then push the notification and deside if to silence it or not.

Basically I'm building an application that silence non-urgent WhatsApp messages (using machine learning to deside whether it's urgent or not).

How can I receive WhatsApp messages to my app and mute some of them?

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
Yael Pesso
  • 53
  • 8
  • I don't understand... How would you get the message before Whatsapp sent it to you? – OneCricketeer Aug 26 '18 at 09:21
  • not before it gets to the phone. before it makes sound and notification – Yael Pesso Aug 26 '18 at 14:05
  • I would be interested in knowing if it's possible to silence your own push notifications. But as mentioned, it's not possible for other apps https://stackoverflow.com/questions/37254064/intercept-all-gcm-push-messagesfor-any-app – OneCricketeer Aug 26 '18 at 15:19

1 Answers1

0

You can’t handle notifications of another application because their server sends a notification that only their application can handle.

This is how FCM works: Firebase Cloud Messaging.

Samuel Roberto
  • 441
  • 3
  • 7