braze-inc / braze-flutter-sdk

Public repo for the Braze Flutter SDK
Other
15 stars 29 forks source link

On iOS, can't see user id used on `changeUser` on Dashboard #27

Closed luisfelipeas5 closed 1 year ago

luisfelipeas5 commented 1 year ago

After call BrazePlugin().changeUser running my app on iOS emulator, the id not appears on Braze Dashboard User Search.

Braze plugin version: ^2.5.0

Steps to reproduce:

  1. create a flutter project with flutter create
  2. add braze plugin with flutter pub add braze_plugin
  3. follow Step 2: Complete native setup of documentation
  4. add BrazePlugin().changeUser call on main function inside main.dart:

    void main() {
    WidgetsFlutterBinding.ensureInitialized();
    
    BrazePlugin().changeUser("braze-test");
    
    runApp(const MyApp());
    }

Flutter doctor output:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.2, on macOS 12.6 21G115 darwin-x64, locale
    en-BR)
[✓] Android toolchain - develop for Android devices (Android SDK version
    33.0.0-rc2)
[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] VS Code (version 1.71.2)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

• No issues found!
Bucimis commented 1 year ago

@luisfelipeas5 you should examine the contents of your verbose logs (https://www.braze.com/docs/developer_guide/platform_integration_guides/ios/initial_sdk_setup/other_sdk_customizations#verbose-logging) to see what's going on. It could be a wrong or missing API key, cluster URL, networking issue on the device, some issue initializing the Braze plugin, or other.

luisfelipeas5 commented 1 year ago

Thank you for the instructions.

Everything that I got setting LogLevel to 0 (and it was the same with LogLevel = 8) was:

Metal API Validation Enabled
[Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process.}
[Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process.}
[Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process.}
[Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process.}
[Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process.}
[Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process.}
[Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process.}
[Client] Updating selectors after delegate addition failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process.}
flutter: The Dart VM service is listening on http://127.0.0.1:56281/C_plRFmXijs=/

And this is really the output of Braze plugin initialization because without it I got:

2022-09-28 12:59:06.216465-0300 Runner[72414:457843] Metal API Validation Enabled
2022-09-28 12:59:06.390906-0300 Runner[72414:458075] flutter: The Dart VM service is listening on http://127.0.0.1:56440/7wP8lD3yU-M=/

This looks like a XCode simulator issue as mentioned here and the error messages are gone using this, but, not signal of my user appears on User Search Dashboard