Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A question about SMS format #1

Open
Jorjill opened this issue Mar 20, 2019 · 2 comments
Open

A question about SMS format #1

Jorjill opened this issue Mar 20, 2019 · 2 comments

Comments

@Jorjill
Copy link

Jorjill commented Mar 20, 2019

Hello and thanks for this example. I want to know why SMS format is have to be "<#> Your ExampleApp code is: 123ABC78 bMWGb1odbbw" ? I'm asking this because I need to fetch SMS number from API into my app which can't be modified into this format. How can I use it in this situation?

@kodakjerec
Copy link
Owner

Because google's RetrieverAPI defines the format. See below
https://developers.google.com/identity/sms-retriever/verify
image
Your server must construct this message format.

If your SMS format can't be the format. You can use old receive way.
https://github.com/andreszs/cordova-plugin-sms-receive
Attention: This way uses "android.permission.RECEIVE_SMS", so it can't push to google play store

@Jorjill
Copy link
Author

Jorjill commented Mar 21, 2019

Thanks for a reply! In my case, the server which is sending SMS is not our server, it's a service provider's server which use a phone number for transaction, so it means that I can't get a verification code and modify it. They send 6 digit number straight to the user's phone so unfortunately it seems that I can't use this API. About that cordova example, how can I integrate it into my android studio project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants