optInForSuccessNotifier method
Registers the platform to receive success notifications from the SDK.
This method should be implemented to set up the necessary listeners for SDK success notifications on the native platform.
Implementation
@override
Future<void> optInForSuccessNotifier() async {
try {
await methodChannel.invokeMethod('optInForSuccessNotifier');
} on PlatformException catch (e) {
log("Error opting in for success notifier: ${e.message}");
rethrow; // Re-throw the exception to be handled in Flutter.
}
}