Send SMS using Twilio in React-Native - 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.

Related

WhatsApp messaging webhook does not work in production mode

I am trying to create a connection between our WhatsApp Business account and our website where we gather all messages sent to our business on different channels (through our own app, text, WhatsApp, ...).
I've followed this tutorial (https://developers.facebook.com/docs/whatsapp/cloud-api/get-started) and have everything set up: our WhatsApp Business is working correctly, I've added a Meta App and I've set up the webhooks with a connection to my node.js backend.
When I click Test next to the "Messaging" webhook, I receive the message on my node.js backend and website. So I know this side is working as it should.
I've then used the Graph API to subscribe my Meta app to the messages with the business id of the WhatsApp with the correct permissions. When checking the subscribed apps with the {business_id}/subscribed_apps endpoint, I can see my Meta app. So I believe everything is set up correctly.
My Meta app is also set to "production".
However, when I try to send a message with my personal WhatsApp to my business WhatsApp, I receive nothing on the webhook.
I checked the logs on my server and nothing is being received, so I know it's not an issue in my node.js backend.
Is there something else I need to do to make this work? Does the Meta app need to be verified to use the webhook in production? If so, how can I do this? The guide for verification says I need a platform and login insctructions, but the Meta app is really only a webhook without an interface.
Thanks in advance.

Using webhooks to retrieve messages from google chat api

I'm trying to create a bot to send and receive messages through Google Chat and I wanted to know if there is any way I can retrieve messages using the webhooks? If not, is there anyway I can request the messages in the chat API without an public IP?
NOTE: if there isn't, I have read the https://developers.google.com/chat/how-tos/service-accounts and I wanted to understand: if I setup a Flask server, will google be able to send me the push notifications back, or do I need a public IP?
I have solved the problem.
There is no way, you must register on google as a developer.
Sorry for taking so long to post the solution

Expo push notification service

Im trying to send push notification using expo notification service, can anyone give the code for it, how to get the tokens and all the other standard stuff, I have been trying to read the documentation but it is really confusing. The app is already on test flight, Also I don't want to eject.
I don't mind using Firebase, but the app doesn't have a user login pages. I don't mind any other method too.
Thanks for the help

Error on "Crypto" to use Twilio (for SMS)

I'm developing an application in React Native for iOS and I'm using Twilio to send a text message (SMS).
To use Twilio I added 2 nodes: Util and Crypto.
In my app, I only added react-native-ble-manager over util, twilio, crypto, and the basic nodes.
Adding the last node Crypto, when I include Twilio in the code, I get an error:
in detail:
Can you help me?
Twilio developer evangelist here.
The Twilio Node.js library is not intended to be used in client side applications. That would require you to store or retrieve your account credentials within the app, which would make them available for a malicious user to steal and use.
Instead, we recommend you set up a server that can perform the API requests and you make calls to that server from your application. Here's how we recommend you do that with Swift on iOS for example. We don't have an example for React Native, but as long as you can make a request to your own server from the application, then that's what you need to do.

Sending SMS Without SMS Gateway in IBM Worklight

I want to send Sms on one number every time when the user clicks the button in my application.I don't want to use any Sms Gateway.The Message can be send with the Phone mobile carrier network.I Could not find it any docs.
Can Any body help me with the docs and the sample code.
Help is appreicated.
You can try the following, which is outside of MobileFirst Platform:
Use the sms:// protocol and launch the system messaging application and send it
Use available 3rd party Cordova plugins
This may require to take care of the whitelisting in Cordova to allow it.