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
- [SOLVED] curl error Number: 6 — function...
Hello, I invested a lot of time in this error in a fresh install of appwrite 1.8.1 and lasted until fix, this if for helping anyone that can have the same weird...
- android platform invaild origina
It happened today suddenly. Our app says invalid origin. And appwrite cloud says every time we tried to add the app to it: "param platformId" is not optional.
- Team invite - 500 error - no email
When executing ```dart await _repository.teams.createMembership( teamId: event.listId, roles: ['member'], email: event.email, url: 'xxxx', ); ``` I se...