Flutter SDK Versions

v.2.4.5

November 18, 2024

The Flutter SDK version 2.4.4 has been published on pub.dev.

IMPROVEMENTS

  • iOS Push Callback Update:

Updated iOS push callbacks to prevent them from triggering on push notifications from other providers.

v.2.4.4

October 24, 2024

The Flutter SDK version 2.4.4 has been published on pub.dev. Below are the version updates:

IMPROVEMENTS

  • Updated Android SDK to version 3.14.4.

  • Updated iOS SDK to version 3.23.16.

🛠 BUGFIX

  • Resolved an issue where the category list passed as a parameter to the getInboxCountForStatus method was not being sent to the backend.

v.2.4.3

August 6, 2024

  • The iOS SDK version within the Flutter package has been updated to 3.23.12.

For more details and to update, visit our Netmera Flutter SDK page on pub.dev.

v.2.4.2

July 30, 2024

IMPROVEMENTS

  • iOS SDK: Upgraded to version 3.23.11.

  • Android SDK: Upgraded nmcore to version 3.14.2.

Integration Changes:

  • Podfile Update: Ensure that the Netmera pods in your Podfile are updated to version 3.23.11.

v.2.4.1

June 25, 2024

We are excited to announce that version 2.4.1 of the Netmera Flutter SDK has been published on pub.dev.

IMPROVEMENTS

  • Upgraded Netmera iOS SDK: Updated to version 3.23.6

  • Upgraded Netmera Android SDK: Updated to version 3.14.0

Attention: Critical Update for Android Users ⚠️

  • Fixed Android Gradle 8+ Release Build Issue: If you are using Android Gradle 8 or above, it is essential to upgrade to at least Flutter SDK 2.4.1 to resolve this issue and ensure seamless builds.

We strongly recommend all users to update to this latest version to benefit from these important improvements and maintain optimal performance and compatibility.

v.2.4.0

February 26, 2024

For detailed version changes, refer to the pub.dev page.

  • Added iOS 3.22.0 package.

IMPROVEMENTS

  • Integrated Android Core and FCM versions 3.12.0, which support the transition to FCM HTTP v1.

  • Raised the Flutter SDK's minimum Android SDK version to 21 for improved compatibility and performance.

🛠 BUGFIX

  • Addressed an issue where building with Android Gradle 8 was causing problems.

v.2.3.7

January 24, 2024

The latest release is now available on pub.dev. This update includes the integration of widget callbacks for enhanced functionality. Here are the version changes:

IMPROVEMENTS

  • Integration of widget callback.

v.2.3.6

January 9, 2024

Android Core 3.11.4 was added to this version. To integrate the latest versions, update your dependencies as follows:

implementation 'com.netmera:nmcore:3.11.4'
implementation 'com.netmera:nmfcm:3.11.0'
implementation 'com.netmera:nmhms:3.11.0'

🛠 BUGFIX

  • In the user update callback, the response was sometimes returned as null. This has been addressed, and error responses will now provide more detailed information.

v.2.3.5

December 11, 2023

Flutter SDK Version 2.3.5 Released,

  • Upgraded Android Core SDK version to 3.11.3. and Android FCM version to 3.11.0.

🛠 BUGFIX

  • Resolved an issue with Android synchronous user updates.

For detailed version changes, refer to the pub.dev page.

v.2.3.4

December 5, 2023

Flutter SDK Version 2.3.4 Released,

  • Added Android core 3.11.1 and HMS 3.11.0 packages.

  • Added iOS 3.21.0 package.

IMPROVEMENTS

  • User update callbacks are now included in the Flutter SDK.

User Update Method Details

Example Usage in Dart Code:

// User update sync
Netmera.updateUser(user).then((value) {
  print('User updated');
}).catchError((error) {
  print('User update failed: $error');
});

For detailed version changes, refer to the pub.dev page.

v.2.3.2

October 31, 2023

Flutter SDK 2.3.2 has been released. Here are the version notes:

  • Android 3.10.4 and iOS 3.18.0 versions have been added.

FEATURE

  • The fetchCoupon feature has been integrated into Flutter SDK.

🛠 BUGFIX

  • The Android baseUrl crash issue has been resolved.

v.2.3.1

September 20, 2023

IMPROVEMENTS

  • Android core and FCM 3.10.2 versions have been integrated into the Flutter SDK.

  • The Target API level of the Android module has been raised to 33.

  • The 'startDataTransfer' and 'stopDataTransfer' methods have been added to the plugin.

v.2.3.0

netmera_flutter_sdk | Flutter Package

IMPROVEMENTS

Flutter version 2.3.0, which includes Android 3.10.1 and iOS 3.16.0 versions, has been released.

v.2.2.0

netmera_flutter_sdk | Flutter Package

IMPROVEMENTS

  • Push action callbacks were moved in foreground thread.

Callback Details

It appears that you have callback methods in your application, where the developer can provide their own custom methods to be executed. These callback methods allow you to receive specific information or perform certain actions requested from Netmera. For example, you can receive push payloads through these callbacks.

In Flutter, there is a problem where callbacks cannot run in the background as the application kills the cross-compiled code to preserve resources. To avoid this issue, you can utilize the "isolate" feature to run the existing callback methods in a separate thread. However, it's important to note that since these callbacks are running in a background thread, they cannot perform long-running tasks or have persistent operations. Once the task in the thread is completed, the thread terminates. This behavior is due to the nature of different threads operating independently. The methods have been moved to the foreground.

  • onPushReceiveBackground callback was created for background messages.

Only the onPushReceiverBackground handling process is performed in the background.

🛠 BUGFIX

  • Flutter iOS event channel issue was fixed.

  • Push action callbacks context issue was fixed.

🔗 INTEGRATION

iOS

  • The section below from the AppDelegate should be removed.

func registerPlugins(registry: FlutterPluginRegistry) {
    GeneratedPluginRegistrant.register(with: registry)
};
  • The following line should be removed from the AppDelegate → didFinishLaunchingWithOptions method.

NetmeraFlutterSdkPlugin.setPluginRegistrantCallback(registerPlugins)
  • The inside of the AppDelegate → didReceiveRemoteNotification method should be changed as follows.

~~FNetmeraService.handleWork(ON_PUSH_RECEIVE, dict:["userInfo" : userInfo])~~

if UIApplication.shared.applicationState == .active {
    FNetmeraService.handleWork(ON_PUSH_RECEIVE, dict:["userInfo" : userInfo])
} else {
    FNetmeraService.handleWork(ON_PUSH_RECEIVE_BACKGROUND, dict:["userInfo" : userInfo])
}

Android

  • There is no change in Android integration.

Dart

  • The NetmeraPushBroadcastReceiver().initialize() method in the main.dart file can now be called anywhere.

  • In order for background messages to be processed, the following method must be added first, outside the main ve MyApp blocks.

@pragma('vm:entry-point')
void _onPushReceiveBackgroundHandler(Map<dynamic, dynamic> bundle) async {
  print("onPushReceiveBackground: $bundle");
}
  • Then this function should be given to onPushReceiveBackground in main before the runApp method as follows.

NetmeraPushBroadcastReceiver.onPushReceiveBackground(_onPushReceiveBackgroundHandler);

For more detailed information, you can see the example usage in the example project. https://github.com/Netmera/Netmera-Flutter-Example/tree/master

v.2.1.15

netmera_flutter_sdk | Flutter Package

FEATURE

  • Netmera Android SDK version was upgraded to 3.9.14.

🛠 BUGFIX

  • Decryption failed issue was fixed. (VF crash fixed.)

v.2.1.14

netmera_flutter_sdk | Flutter Package

⭐ FEATURE

  • Android core SDK version 3.9.12 and FCM version 3.9.4 have been added to the Flutter SDK.

  • Android 13 notification permission methods have been added to the Flutter SDK and integrated with the existing iOS methods. The areNotificationsEnabled and requestPushNotificationAuthorization methods can now be used for both iOS and Android devices.

Push Notification Permissions

If you don't request notification permission at runtime, you can request it by calling the requestPushNotificationAuthorization() method. Note: Notification runtime permissions are required on Android 13 (API 33) or higher. Therefore, before calling the method, make sure your project targets an API of 33 and above.

Netmera.requestPushNotificationAuthorization();

You can call the areNotificationsEnabled() method if you need to know the status of permissions.

Netmera.areNotificationsEnabled().then((enabled) {
      // Use the enabled status of permission as boolean
 });

Usage details of areNotificationsEnabled and requestPushNotificationAuthorization methods have been added to the Readme file.

Last updated