I found several questions and answers that use an API like Twilio or Amazon to send SMS messages, but what I wanna know is whether there is a way to use the user's phone number to send an SMS message using Javascript. I am working on a desktop app that uses ElectronJs and ReactJs. Thank you.
Related
I need to send whatsapp messages to multiple phone numbers using node.js.I am using the twilio Api to achieve this.I signed up in twilio,followed the steps and used my mobile number for the sandbox.I used the code in node.js application,it worked with my whatsapp number,but not with other phone numbers.Is there anything to deal with a trail version?? Or Is their any other way to sort this out? please let me know.
Twilio developer evangelist here.
The WhatsApp Sandbox is intended for testing and you can only send messages to numbers that have sent you the phrase required to join your sandbox (the phrase is the word "join" plus two random words, like "join ceil-maltese").
Once you have tested and you want to take your application to production, you need to create a WhatsApp Business profile and connect a Twilio number that you own to it. Once you have gone through the process documented here you will be able to send WhatsApp messages to your users once they have opted-in to receive those notifications.
I will create python api using Django
now I trying to verify phone number using firebase authentication end send SMS to user but I don't know how I will do
The phone number authentication in Firebase is only available from it's client-side SDKs, so the code that runs directly in your iOS, Android or Web app. It is not possible to trigger sending of the SMS message from the server.
So you can either find another service to send SMS messages, or to put the call to send the SMS message into the client-side code and then trigger that after it calls your Django API.
I want to use firebase phone authentication but I don't want to let any random phone number to login.
I know I can use "onCreate" trigger on the server and delete any new user after it is created .
https://firebase.google.com/docs/functions/auth-events
but this doesn't look like a clean solution.
In fact I don't even want to send the SMS code to a phone number that is not in my whitelist.
(People can make mistake and enter wrong phone number)
I don't want to have the whitelist on client side. it is neither secure nor private. It can be easily modified, plus all valid phone numbers can be read and harassed.
Is there a way to limit Firebase phone registration in a way that it only send the SMS if a phone number is part of a whitelist on server side.
Or is there any event on Firebase server side after phone number is entered and before SMS is sent that I can use to bypass sending SMS.
What you're describing is unfortunately not possible with Firebase Authentication's phone auth provider. If this is a hard requirement for your project, you may have to find another provider to fit this need.
For many auth providers what you're describing is possible in Google Cloud Identity Platform (Firebase Authentication's paid sibling) by implementing a blocking function, but I don't see phone auth listed in the supported providers.
Is there a way to manipulate WhatsApp Web so I can send messages through a program, using JavaScript by example, or any other method. My plan is to use a database of phone numbers saved in my phone, so I can filter out contacts and send massive messages via WhatsApp Web.
I would check Whatsapp Business API, if you're not doing it for a business endeavor I think it's going to be pretty hard, since it's against their term of service.
I'm creating a web application for mobile devices that will be downloaded in one of the markets with a mini web server and run on any OS ( iOS , android , Windows8 , etc. ) .
I want an application to be as independent as possible of the OS. I only wanted to use HTML5 and JavaScript .
The application allows a user to make a number of orders just by clicking buttons. Example : [List contacts ]
I need to click [List contacts ] and is sent a text message automatically to other mobile device with an android application that receives the request and sends the response via sms . The response has to be read by my web application . The application can be able to work without network / Wifi .
I've been searching and I only found ways to open the native application for sending sms.
I see that question, but I want to create my own way to send sms without dependencies of other applications.
Is there any way to make this submission automatically?
Or can I use/create some plugin to use on JavaScript to do that?
[EDIT] Can this might be a possibility? Can someone explain me?
I believe the essential information was already mentioned in the comments, but my 2c here anyway.
As already commented, with current modern mobile operating systems apps don't get unlimited access to SMS functionality. From the user point of view allowing this would be potentially quite a hazard, since SMS's usually cost money and user should be in control of such activity, instead of having a random app sending and receiving SMS's freely (without user knowing it). Android is a bit more flexible regarding this kind of functionality, but as mentioned, iOS and also Windows 8/Windows Phone 8 only allows you to integrate to the SMS sending application and for SMS reception, there's no proper way to get access to incoming SMS's.
So, with a native container (such as PhoneGap) you could get one step forward with Android, but for other platforms the possibilities are limited to using the native SMS application. If you need to use SMS for some reason in the backend side, services such as Twilio are probably your best shot, but using SMS locally on the device is pretty much a no-go, unfortunately.