Sending USSD codes in React native - reactjs

I'm trying to create an app with React Native to sending some USSD codes and Manage SMSs.
actually, I need to do two operations in my app:
USSD
SMS
I Googled it but there are not many resources about this topic, so If someone knows how to do it, I'll appreciate a lot your help, Thanks!

Firebase has a PhoneAuth module, which will send a verification code to the device via SMS.
You can find more info here : https://github.com/invertase/react-native-firebase-docs/blob/master/docs/auth/phone-auth.md
Also keep in mind that you have to add the Native Firebase module for React Native and not the web based one as it does not support Phone authentication.

This can be done using react-native-ussd library, for dialing and receiving USSD responses.
But currently only Android is supported.

Related

React | Can not fetching data from local api

I have a React app on 127.0.0.1:3000 / 192.168.0.104:3000 and a Laravel api on 127.0.0.1:8000.
My problem is, I can fetch the data on my computer (127.0.0.1), but it seems that the React app can't correctly get the data from the database when I access the React app from my phone on LAN (192.168.0.103).(I can see the React app)
Can someone help me to solve this problem or tell me what may cause this? Thank you.
I suspect you have a CORS policy error. I'm not familiar with Laravel cause you know, PHP, but a quick google search would probably tell you how to allow a foreign domain to have access to your api.
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
To verify you have a cors policy error, you'd have to open dev tools and take a look at the errors. However, I'm unsure if that's possible on a mobile browser. I never tried, so it could be possible. Again another google search would answer that for you.
I just solved this problem by myself. It is because that the client can not find the Laravel API on LAN. In Img A the port 8000 is not open on the machine, so the client can't access the API.
Img A
My solution is that host the API and APP on the different machine and make sure that the client can access both the APP and API.
Img B

React and MSGraph - send email

I'm having a hard time understanding how to send an email in react using msgraph. I have authentication working through MSal and can show the user profile. I have read the documentation and it feels like I'm missing many steps. Does anyone know of a sample project that authenticates and sends a test email? Ultimately I would like to create a reusable function that takes in the TO, Subject, Body.
Thank you for reaching out.
Refer to the module here.
This module will introduce you to working with the Microsoft Graph in creating a React single-page application to access data in Office 365.
Thanks.

(React Native) How to share a message to a particular person on LinkedIn

I'm working on a react-native app in which I need to share a message with a particular person/friend/connection on LinkedIn.
I tried react-native's Share component but when I select the LinkedIn app to share my message, it just post the message to my profile wall (and not sending it to a particular connection).
Other apps like Facebook Messenger for example, when I select Share with Messenger it allows me to send the share message to the user(s) I select.
For me you have 3 possibilities:
To find the right Linkedin App callback url (ex: linkedin://profile?id=[id]), my answer on this question should help you.
To look if using the react-native-share dependency can help you.
To implement and use a Native Module with the Linkedin SDK.

login system with a phone authentication system using twilio

I'm trying to build a login system with a phone authentication system.
Does anyone of you have experience with this? I'm using fire base as a backend, and twilio for sending sms. So i need to send sms with a pin. i'm developing this app using (ionic + firebase + twilio)
Thanks
Twilio developer evangelist here.
In order to send SMS messages using Twilio you're going to need your own server so that you can make the API requests to the Twilio API. I checked through Firebase and there is nowhere for you to run your own code on there, which is a shame, though it does supply static site hosting these days, which is nice.
I recommend you take a look through the Twilio tutorials which will give you a good idea how to build an application that can perform the API requests for you. I might start by checking out:
SMS notifications in Node.js
Phone authentication using Authy in Node.js
(Authy is the best way of verifying and authenticating phone numbers and is part of Twilio now.)
Let me know if this helps at all.

Sending push notifications to your bowser using web sockets & AngularJS

I'm looking at implementing a web app push notifications using web sockets while working with AngularJS. I have researched many examples but have not been able to set up the push notification functionality so far. I have always been shown a message that the connection could not be made.
Could anyone point me in the right direction with a few examples I could refer to? That would be just great!
Thanks!
-Jalesh
It's tough to answer your question without more details. Check out the SignalR or Socket.IO libraries. You might also consider the Angular Socket IO Seed Project

Resources