I have internet permission, I'm not getting any messages on my phone
bool result = await InternetConnectionChecker().hasConnection;
if (result == true) {
print('Internet');
} else {
print('No internet :frowning: Reason:');
print(InternetConnectionChecker().hasConnection);
}
Client client = Client();
client.setEndpoint('https://cloud.appwrite.io/v1').setProject('64ef18ed8758c1e4c074').setSelfSigned(status: true);
final account = Account(client);
final session = await account.createPhoneSession(userId: '905363890562', phone: '+905363890562');
print(session);
} on AppwriteException catch (ex) {
print(ex.message);
}```
FYI, it's best to wrap code in backticks to format a bit nicer. You can use 1 backtick for inline code (https://www.markdownguide.org/basic-syntax/#code) and 3 backticks for multiline code (https://www.markdownguide.org/extended-syntax/#syntax-highlighting.
it's expected for secret to be empty after making the api call. The secret will come in the SMS
why i dont receive any SMS
incorrect phone number?
no my number is correct +90 536 389 05 62, can it be caused by the clock, expiry date is in the past
nope. i can see we tried to send the SMS, but it was undelivered by the carrier network.
usually this is a problem with handset off, no signal, device can't receive SMS, problem with mobile carrier
maybe your carrier is blocking/filtering the SMS? btw, the SMS should be coming from a US number
i can receive message in turkey, Does the phone have to be open abroad?
i will ask my phone carrier tomorrow, thank you so much
like i said, the SMS will be coming from a US phone number, so you'll need to be able to receive SMS from US phone numbers
I understand, thank you very much for your help.
Recommended threads
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...
- [SOLVED] OAuth With Google & Flutter
Hi all, I'm trying to sign in with google and it all goes swimmingly until the call back. I get a new user created on the appwrite dashboard however the flutte...