facebookarchive / account-kit-samples-for-android

Account kit sample for the android platform
Other
123 stars 96 forks source link

SMS code not not filling automatically #1

Closed pstuashiqcse closed 8 years ago

pstuashiqcse commented 8 years ago

All functionality working perfectly except automatic sms code filling.

I have added those to my mainfest and AccountKitConfiguration respectively


 <uses-permission android:name="android.permission.READ_SMS" />
 <uses-permission android:name="android.permission.RECEIVE_SMS" />
configurationBuilder.setReadPhoneStateEnabled(true);
configurationBuilder.setReceiveSMS(true);

Interesting thing is, after integrating those configuration auto SMS worked perfectly, but after few SMS that again stopped working. What can I do?

olgaikuznetsova commented 8 years ago

What Android version are you using? For M+ you'll need to also request the permission via code (requestPermissions(new String[]{ permission }, requestCode);).

An example is here: http://stackoverflow.com/questions/33078003/android-6-0-permission-error

Please file any issues you have with Account Kit integration via the Facebook developer portal: https://developers.facebook.com/bugs/?tag_ids=1679169675664406

pstuashiqcse commented 8 years ago

Great! working like charm!

Thanks a lot...

ducpt2 commented 5 years ago

@pstuashiqcse can you guild me to do this feature? Thanks.