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
x
Send SMSx
Retrieve all messagesx
Retrieve a specific message by IDx
Retrieve account detailsx
Retrieve the list of contactsx
Create a new contactx
Retrieve the list of groups
Tested Platforms and Status
x
iOS - Tested and workingx
macOS - Tested and workingx
Android - Tested and workingx
Web - 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.entitlements
file for iOS and themacos/Runner/DebugProfile.entitlements
andmacos/Runner/Release.entitlements
files 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.xml
file. - Add the following line inside the
<manifest>
tag to grant Internet access:
<uses-permission android:name="android.permission.INTERNET" />