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
- Impossible to get USER after createEmail...
Am using provider to deal with functions linked to appwrite. Here is my login. Future<String?> login(String email, String password) async { try { aw...
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...