Closed nikiforospertselis closed 2 years ago
hi buddy, i think you should import permission_handler
import 'package:permission_handler/permission_handler.dart'; ...
// in the space where the error was thrown, you should ask the permission first to read sms,
// checkSelfPermission might mean that u requested for data like the permission was already given
var sms = await Permission.sms.status;
if (sms.isGranted) {
SmsQuery query = new SmsQuery();
List
Thanks @Nasir87
When i run the query .getAllSms() i get the error bellow. All the sms permissions is granted. This is my code.
I get this error:
AndroidManifest