How does WhatsApp notifications bypass Doze if it uses XMPP? - whatsapp

I'm trying to work out how WhatsApp notifications work. First of all, does it use XMPP or FCM messaging? Many online sources say it uses XMPP but the WhatsApp FAQ has hints towards FCM (https://faq.whatsapp.com/en/android/20887936/?category=5245260 at the very bottom of page it says "it is possible that you are not receiving updates from Google's push notification service.")
If WhatsApp does use XMPP, how does it bypass Doze? Because surely WhatsApp needs FCM high-priority to bypass Doze? Does this mean WhatsApp may use a combination of FCM and XMPP?
Many thanks.

Related

Where does the API call from the interactive card in Google Chat go?

I am trying to replicate examples from the Google Docs about Creating interactive cards in Google Chat. I have created a sample link in my card.
Sample card with a link "click me"
But once I hit "click me" I have no idea where the request goes and how to steer that it's routed to my publicly available Node.js express route on Google Cloud run.
I must have missed something about the basic bot communication. Can you help me? (Background. I am sending my card via a simple webhook at this point.)
I have found out, that my implementation was not suitable for interactive cards. If someone clicks an interactive card Google Chat will notify the creating bot at its API point specified in the Google Cloud configuration.
So posting the card via WebHook is possible. But there is not communication channel back in this scenario.
I resolved my issue by implementing it with a proper Google Chat bot.

Send SMS using Twilio in React-Native

I have been researching for many days on how to send sms using Twilio in React-Native. I haven't found a single example that works! I thought this should be simple but apparently not.
Any suggestions?
Twilio developer evangelist here.
While not ReactNative, I wrote a post about how to send SMS messages in React. The idea for ReactNative will be the same though. You don't want to make requests to the Twilio API directly from your application, you'd need to store your credentials in the app somehow and a malicious user could decompile it and abuse your account.
Instead you want to build a server application that sends the messages and make requests to that from your ReactNative application.
Let me know if that helps at all.

In Codename One which is supported either GCM or FCM?

As per this link, FCM is the new version of GCM under the Firebase brand. In Codename One, which is supported? GCM or FCM?
We currently use GCM internally. We can switch to FCM but there is no real reason. Google has no intention of removing GCM as FCM (and a lot of apps) depend on it.
They are pushing FCM to push firebase. This provides no advantage to Codename One users as the easier API isnt' relevant (we abstract away the pains of GCM).
Bottom line is that you don't need to worry, if there is a need to switch to FCM we will do it for you and it will be seamless.
I'm not too familiar with Codename One so I decided to go ahead and look into their site. I found this Codename One page that guides about Push Notifications, but noticed that it's an old guide since this was still using the Developer Console when generating the Server Key (used for GCM/FCM).
With that, I went ahead and asked the Codename One chat support (lower-right side of the page). Chat history below:
Me:
Hey guys. I was wondering what Push Notification Services do you Support?
I've seen this link -- https://www.codenameone.com/how-do-i---use-push-notification-send-server-push-messages.html
Do you have your own Push Notification Service? Or are you guys using GCM? Is it already integrated with FCM too?
Lianna (Chat Support):
Hi,
we use the native push notifications for the respective platforms GCM, Firefox, Chrome, Microsoft and ipns.
Currently we use GCM and not FCM as the advantages given by FCM are mostly for API usage (which isn't applicable) and not very portable (available only for Android). When/if we switch to FCM this would be seamless thanks to our abstraction of the service.
FYI that video is a bit out of date, there is more up to date coverage in our developer guide.
Credit goes to Lianna (Kudos! :)). I think this here is the developer guide she was referring to.

GCM Notification arrives after 30seconds

I am using Google development sample codes to receive GCM notifications. I have spent nearly a week to find why I receive notifications after 25~30 seconds!!! did not find any answer.
I receive other apps' notifications (such as Viber, Line and WhatsApp) almost instantly!
It has the same slow behaviour in both emulator and my Samsung Galaxy S5.
I receive respond with message ID from Google GCM server instantly when I send a notifications so it means the problem is from Google GCM server to my app.
Any help would be much appreciated.

Is there a way to send WhatsApp messages from desktop / server box?

I need online notifications from an enterprise information system.
Exists a way to send messages via WhatsApp instead SMS?
(I work with linux)
I have digging stackoverflow for an answer unsuccessfully.
to send server status to you. pushover alternative: node-xmpp-client with facebook sample and register fake facebook account
They are not official API neither a tool to send messages programmatically.