zoho / salesiq-mobilisten-flutter

SalesIQ Mobilisten plugin for Flutter.
https://mobilisten.io
MIT License
12 stars 10 forks source link

On the Android platform, executing functions will permanently block #64

Open mdddj opened 1 month ago

mdddj commented 1 month ago
salesiq_mobilisten: ^6.2.0

example

void testSM(){
      debugPrint("start register visitor");
      await ZohoSalesIQ.registerVisitor(id);
      /// --------
      debugPrint("This sentence will never be executed");
}

If you delete 'await', it is valid

bhahirathan-mb-11956 commented 3 weeks ago

Hi @mdddj,

We apologize for the inconvenience. We will look into this issue and update you. Meanwhile, please use the API as given in the snippet below and try it one more time.

ZohoSalesIQ.registerVisitor("visitor_unique_id").then((result){
      // Registration successful
}).catchError((error, stackTrace) => {
      // Registration failed
});

Best regards, Bhahirathan M Zoho SalesIQ.