Closed kuznetsov-from-wonderland closed 7 months ago
@chezmo @tekinalper @maliaydemir hey Refiner team. Could you please take a look at this issue?
same here
@kuznetsov-from-wonderland @ktnishide We're checking it and will release a hotfix asap.
@kuznetsov-from-wonderland @ktnishide We've released version 0.0.4. Could you please test it and let us know if everything is alright?
Swift Compiler Error (Xcode): Incorrect argument label in call (have 'projectId:enableDebugMode:', expected 'projectId:debugMode:')
/Users/kuznetsov.one/.pub-cache/hosted/pub.dev/refiner_flutter-0.0.4/ios/Classes/RefinerFlutterPlugin.swift:48:35
Could not build the application for the simulator.
Error launching application on iPhone 15 Pro Max.
There's anothe issue arised. I monkey patched source code and it worked.
public func initialize(projectId:String, enableDebugMode:Bool) {
Refiner.instance.initialize(projectId: projectId, debugMode: enableDebugMode)
registerCallbacks()
}
I have RefinerSDK (1.3.0)
in my Podfile.lock.
Sad to see, but did you run your plugin code?
I didn't notice any new crashes on 0.0.4
, so thank you! But there are two more issues regarding SDK usage.
1οΈβ£ I log in with a user --> I call
await Refiner.identifyUser(
userId: user.id,
userTraits: {},
locale: user.lang.name,
);
}
The form is shown to a user based on the screen name NewOrderRoute
β
Then I log out, I call Refiner.resetUser() and log in with a different user. Then I call identify again with the new userId. I go to
NewOrderRoute
again, I do expect the it will display the Survey, but the form is not βοΈ displayed to a new user.
2οΈβ£ How to properly pass down the locale? I have English and Arabic in my project. I pass 'ar'
and 'en'
as String
to Refiner.identifyUser
method call, but on the Refiner.io dashboard when I go and check user traits, the locale is not saved anywhere there. How to make refiner SDK v 0.0.4 respect the locale correcyly?
Future<void> identify(AnalyticsUser user) async {
await Refiner.identifyUser(
userId: user.id,
userTraits: {},
locale: user.lang.name,
);
}
@kuznetsov-from-wonderland
Regarding 1/ The scenario you describe should work. We are currently trying to reproduce the issue. Can you send us the user IDs you are using to our support channel at contact@refiner.io please?
Regarding 2/ If you want to attach the locale
to the user for further segmentation, you'll need to add it to the userTraits object. The locale
parameter is solely used for showing the survey in the right language.
@kuznetsov-from-wonderland
Regarding 1/ The scenario you describe should work. We are currently trying to reproduce the issue. Can you send us the user IDs you are using to our support channel at contact@refiner.io please?
Regarding 2/ If you want to attach the
locale
to the user for further segmentation, you'll need to add it to the userTraits object. Thelocale
parameter is solely used for showing the survey in the right language.
On it. Will try today. Thank you!
I passed down the locale
property to the userTraits and checked it's recognized in dashboard.
And I can confirm that it doesn't work
I asked for a debug session by emailing you on contact@refiner.io
Please respond.
β
Resolved in 0.0.5
Thank you!
Hey ππ»
Flutter doctor output
Versions![CleanShot 2023-11-16 at 11 03 47@2x](https://github.com/refiner-io/mobile-sdk-flutter/assets/33729094/b60a2d85-5a7f-408b-b26f-74b06ded42ae)
Crash report![CleanShot 2023-11-16 at 11 00 57@2x](https://github.com/refiner-io/mobile-sdk-flutter/assets/33729094/98bd2dba-03dd-488e-9b21-53a4858a6a0b)