v3rm0n / intercom_flutter

Flutter wrapper for Intercom libraries
94 stars 140 forks source link

Welcome Message didn't update after I switched language #293

Open Jasminelau07 opened 1 year ago

Jasminelau07 commented 1 year ago

How to set welcome message with different languages? I used intercom_flutter for my Flutter app, and updated the language using intercom.updateUser(language: 'zh-TW');

Before: en image

After: zh-TW image

which the Hello Jasmine should be replaced to 您好👋

as follows: image

Please help

Thanks a lot🙏

deepak786 commented 1 year ago

@Jasminelau07 It should be working.

Please submit the bug report to the Intercom support including the details like Intercom SDK version, platform, etc.

Jasminelau07 commented 1 year ago

Hi @deepak786 I tried on your example as well and it works for French (i.e. Intercom.instance.updateUser(language: 'fr');), but not work for Tradition Chinese (i.e. Intercom.instance.updateUser(language: 'zh-TW');)

class SampleApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Intercom example app'),
        ),
        body: Center(
          child: TextButton(
            onPressed: () {
              // NOTE:
              // Messenger will load the messages only if the user is registered
              // in Intercom.
              // Either identified or unidentified.
              // So make sure to login the user in Intercom first before opening
              // the intercom messenger.
              // Otherwise messenger will not load.
              Intercom.instance.loginUnidentifiedUser();
              Intercom.instance.updateUser(language: 'zh-TW');
              Intercom.instance.displayMessenger();
            },
            child: Text('Show messenger'),
          ),
        ),
      ),
    );
  }
}

Thanks

deepak786 commented 1 year ago

@Jasminelau07 I have reported this issue to Intercom and they identified it. Now we have to wait until it gets resolved from their end.