chyiiiiiiiiiiii / flutter_zendesk_messaging

Zendesk-Messaging for Flutter developer
Apache License 2.0
31 stars 46 forks source link

Add invalidate method to ZendeskMessaging #32

Closed DouglasValerio closed 1 year ago

DouglasValerio commented 1 year ago

What is the content type?

Why is this change necessary?

How does this address the issue?

How to use it?

Whenever needed, call:

ZendeskMessaging.invalidate()

This will invalidate the current instance of ZendeskMessaging, allowing you to call:

ZendeskMessaging.initialize(
      androidChannelKey: androidChannelKey,
      iosChannelKey: iosChannelKey,
    );

With a new set of androidChannelKey and iosChannelKey, this is useful if you have subbrands in your Zendesk usecases and so they each need their own channel keys.