ionic react firebase otp text customization - mobile

I managed to get the Phone authentication successfully on android and ios. But the OT message always in the format mentioned below
OTP SMS "123342 is your verification code for localhost"
How do I get rid of localhost or add my own text?
I' wrote the code in Ionic React

Related

GMail API Node.js quickstart - ERR_CONNECTION_REFUSED

I am trying the GMail API Node.js quickstart on Windows 10.
I do get the expected
.
However when I visit the url I get
for http://localhost/?code=4/xxxxxxxxxxxxxxxxxx&scope=https://www.googleapis.com/auth/gmail.radonly
I get this error after going through 'This app isn't verified'/'Advanced > Go to {Project Name} (unsafe)'. message.
No Proxy active and also tried with AntiVirus disabled.
Any ideas what the problem could be?
Thanks.
The issue you are having is that you are runing a Authorization credentials for a desktop application. Google made a change recently which deprecated the oob redirect. This means that now you need to use localhost or 127.0.0.1 as a redirect endpoint for installed applications.
Resulting them in returning the authorization code back to the browser showing site can not be reached because your not running a web app you are running an installed application.
If you check the url the authorization code you are looking for to add to your code can be found there. just take that code and submit it where it asks for it.
Enter the code from that page here:
There is currently no other option and no way to fix this unless you want to start up a web server in node. basicly its working as intended and Google is in the process of updating all the Javascript samples to reflect that.

apiRTC.disconnect(); does not appear to work with cordova

I have setup both a classic ASP site and a cordova angularjs ionic app that allow video conferencing with apiRTC. When the user logs out of the web site apiRTC.disconnect(); works so a new apiRTC.init can be used when a different user logs in.
In the app, apiRTC.disconnect(); does not do anything so the user appears to still be online to other users, and when a different user logs in, it has no affect since init does not work.
Can you look at apiRTC.disconnect() under cordova and see if there is a general issue?
I have checked the issue by doing a test using our tutorial : https://github.com/apizee/ApiRTC-mobile and adding a button that call apiRTC.disconnect() on Android.
Others users receive the disconnection information and remove the user from the connectedUsersList.

Cordova Paytm plugin integration

I integrated the cordova paytm plugin in our ionic app.It is working fine. But after successful payment transaction, it is redirecting to specified call back url. it is not coming back to the app. If callback url is not specified, it is redirecting to error page.I want to get back to app after payment transaction.How i can get the response to the app itself ?
Plugin : http://github.com/samyam-a/PayTM-PhoneGap-Plugin
Please help me to sort out this problem.
Thanks

Login Authentication work on browser (lab) BUT not on ionicview or ios emulator

I am having difficulties testing my application on Ionic View or iOS emulator.
When I run my app from browser (ionic serve --lab) I am able to send the login http post request, get a proper response and login. However, when I test my app from ionic view or ios emulator, my http request does not seem to be even sent as I get a strange response status code of -1 and no response data (null).
just to note my server has been set up to accept the CORS and it allows cross origin requests.
Has anyone had any similar issue?
Any help or instruction would be much appreciated.
Thanks,

Facebook Test User and iOS6 OS Integration

I'd like to use my FaceBook test users (which can be used in a browser and username/password are working correctly) in my iPhone Simulator and iPhone itself for trying to post from an application. If I try to register the FaceBook test account in iOS6 Settings, I got an error
Could not communicate with the server
This error is different from username/password wrong and seems to work for almost 30 seconds before the error pops up. (The login via Mobile Safari works flawless)
Any ideas what I should try to get iOS6 to work with my FaceBook test user?
Best regards
A.Steinel

Resources