This sample demonstrates the use of Play Service's SMS Verification APIs to getaccess to specially-tagged text messages (the tags associate the message withthe APK) without needing full SMS retrieval permission (SMS_READ).
Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question.Provide details and share your research! Asking for help, clarification, or responding to other answers.
To build the application, you will need to acquire or generate at least three(potentially four), files. These files are not distributed with this source asthey contain sensitive keys, etc.
./android/app/google-services.json
(configuration for Google API client).(Online tool to generategoogle-services.json
.The package name is com.google.samples.smartlock.sms_verify
.)
./sms-verification/android/app/src/main/res/values/sensitive.xml
(configuresthe HTTP endpoint the app uses to send the SMS). The format is:
./sms-verification/android/debug.keystore
(keystore used to sign the APK).
./sms-verification/appengine/credentials.py
(configures the SMS itself).(Optional—this is only necessary if deploying/changing the appengine server-sidecomponent.) Use the script sms-verification/bin/sms_retriever_hash_v9.sh
togenerate the hash if required:
These three files have dependencies on each other; they together ensure that thetext messages sent by the server can be read by Google Play Services.