@@ -105,6 +105,9 @@ class QonversionPlugin : MethodCallHandler, FlutterPlugin, ActivityAware {
105105 " userProperties" -> {
106106 return userProperties(result)
107107 }
108+ " forceSendProperties" -> {
109+ return forceSendProperties(result)
110+ }
108111 " logout" -> {
109112 qonversionSandwich.logout()
110113 return result.success(null )
@@ -159,7 +162,7 @@ class QonversionPlugin : MethodCallHandler, FlutterPlugin, ActivityAware {
159162 // NoCodes methods
160163 " initializeNoCodes" -> noCodesPlugin?.initializeNoCodes(args, result)
161164 " setScreenPresentationConfig" -> noCodesPlugin?.setScreenPresentationConfig(args[" config" ] as ? Map <String , Any >, args[" contextKey" ] as ? String , result)
162- " showNoCodesScreen" -> noCodesPlugin?.showNoCodesScreen(args[" contextKey" ] as ? String , result)
165+ " showNoCodesScreen" -> noCodesPlugin?.showNoCodesScreen(args[" contextKey" ] as ? String , args[ " customVariables " ] as ? Map < String , String >, result)
163166 " setNoCodesLocale" -> noCodesPlugin?.setLocale(args[" locale" ] as ? String , result)
164167 " setNoCodesTheme" -> noCodesPlugin?.setTheme(args[" theme" ] as ? String , result)
165168 // NoCodes Purchase Delegate methods
@@ -252,6 +255,12 @@ class QonversionPlugin : MethodCallHandler, FlutterPlugin, ActivityAware {
252255 qonversionSandwich.userProperties(result.toJsonResultListener())
253256 }
254257
258+ private fun forceSendProperties (result : Result ) {
259+ qonversionSandwich.forceSendProperties {
260+ result.success(null )
261+ }
262+ }
263+
255264 private fun isFallbackFileAccessible (result : Result ) {
256265 qonversionSandwich.isFallbackFileAccessible(result.toJsonResultListener())
257266 }
0 commit comments