Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
aposnovmati committed Nov 26, 2021
1 parent 1d5bdcb commit 1e1ff27
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public void run() {
final String clientId = call.getString("clientId");
final String flowId = call.getString("flowId");
final JSONObject metadata = call.getObject("metadata", null);
metadata.put("sdkType", "capacitor");

Intent intent = new Intent(bridge.getActivity(), DataPrefetchActivity.class);

Expand Down
4 changes: 3 additions & 1 deletion ios/Plugin/Plugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ public class MatiCapacitorPlugin: CAPPlugin {
@objc func showMatiFlow(_ call: CAPPluginCall) {
DispatchQueue.main.async { [weak self] in
guard let self = self else { return }
let metadata = call.getObject("metadata") ?? [:]
metadata["sdk_type"] = "ios_capacitor"
Mati.shared.showMatiFlow(clientId: call.getString("clientId") ?? "",
flowId: call.getString("flowId") ?? "",
metadata: call.getObject("metadata") ?? nil)
metadata: )
MatiButtonResult.shared.delegate = self
call.success()
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aposnovmati/mati-capacitor-plugin",
"version": "2.3.0",
"version": "2.3.1",
"description": "Capacitor plugin for MatiSDK",
"main": "dist/plugin.js",
"module": "dist/esm/index.js",
Expand Down

0 comments on commit 1e1ff27

Please sign in to comment.