freshworks / hotline-phonegap

Hotline Phonegap Plugin
https://hotline.io
Other
6 stars 11 forks source link

UI freezing in ios devices. #22

Open sk16 opened 7 years ago

sk16 commented 7 years ago

UI is freezing in ios devices . Below is the code in js.

` pushHandler.on('notification', function(data) {

   handlePush(data);
   if(!window.Hotline){
    return ;
   }
   window.Hotline.isHotlinePushNotification(data.additionalData, function(success, isHotlineNotif) {
    if( success && isHotlineNotif ) {
      if(data.additionalData.coldstart === true){
        window.Hotline.showConversations();
      } else {
        window.Hotline.handlePushNotification(data.additionalData);
      }
    }
 }); 
});`

How to reproduce: 1) kill the app.

2)Send some message from hotline.

3)Whenever a push from hotline comes--> click on push notification -->It opens the app and render the UI --> OnNotification of push plugin is triggered. --> it opens hotline chat window. --> close the hotline chat window. --> UI freezes.

Observations:

1) I am able to trigger click elements via console. alert is also working.

2) working in normal conditions. i,e when app opens --> calling showConversations api(). -->closing it. --> UI is working.

*I am using framework 7 and backbonejs for UI.

rsquare2014 commented 7 years ago

Hey, We will look into this and get back to you.

rsquare2014 commented 7 years ago

Hello sk16,

 I am trying to reproduce this but i am unable to reproduce this issue.  Can you please specify which device you are trying this on? and which version of the hotline plugin are you using?
sk16 commented 7 years ago

hi rsquare2014 ,

Device : iphone 6s , ipad mini .

version : tested with version 0.6.0 and 0.6.1.

If you can give me Hotline AppId and appkey , I can give .ipa file and server key . So that you can reproduce the error.

rsquare2014 commented 7 years ago

Can you try updating to the latest version and seeing if the issue persists? I will check again with v0.6.1 on an iphone 6s.

sk16 commented 7 years ago

hi, issue is still there with latest version 1.1.0 .