nimbasms_flutter
nimbasms_flutter is a Flutter plugin for interacting with the Nimba SMS API. It allows you to send SMS, manage contacts, retrieve messages, and perform other SMS-related operations using the Nimba SMS service.
Features
xSend SMSxRetrieve all messagesxRetrieve a specific message by IDxRetrieve account detailsxRetrieve the list of contactsxCreate a new contactxRetrieve the list of groupsCreate a verificationRequest verification
Tested Platforms and Status
xiOS - Tested and workingxmacOS - Tested and workingxAndroid - Tested and workingWindows - Not tested yetLinux - Not tested yetxWeb - Tested and working
Getting Started
Installation
Add nimbasms_flutter as a dependency in your pubspec.yaml file:
dependencies:
flutter:
sdk: flutter
nimbasms_flutter: ^1.0.0
Platform-specific Setup
To enable network access for your application, you need to configure specific settings for iOS, macOS, and Android.
iOS and macOS
To enable network access for your application on iOS and macOS, you need to modify the entitlement files and add the necessary permissions:
Update Entitlements:
- Open the
ios/Runner/Runner.entitlementsfile for iOS and themacos/Runner/DebugProfile.entitlementsandmacos/Runner/Release.entitlementsfiles for macOS. - Add the following lines to allow your application to make network requests:
<key>com.apple.security.network.client</key>
<true/>
Android
For Android, you need to add the Internet permission to allow your application to access the network.
- Open the
android/app/src/main/AndroidManifest.xmlfile. - Add the following line inside the
<manifest>tag to grant Internet access:
<uses-permission android:name="android.permission.INTERNET" />