clearMessageCache method
Clear the message cache
Forces fresh data fetch on next API call. Useful for testing or troubleshooting.
Note: This method is only available on iOS.
Implementation
Future<void> clearMessageCache() async {
_checkInitialized();
try {
await InAppMessagesChannel.invokeMethod(
method: InAppMethod.clearMessageCache,
);
log('PPGInAppMessages: Cache cleared');
} catch (e) {
log('PPGInAppMessages: clearMessageCache failed - $e');
}
}