1

当我在空白离子应用程序中使用 Applozic sdk 时,一切正常,没有问题。但是,当我在现有的 ionic 应用程序中使用它并且想与连接的用户聊天时,我的应用程序会重新加载/重新启动。可能是什么原因?

//Function to initialize chat plugin

$applozic.fn.applozic({
      userId: 'rabie_k', // Replace USER_ID with the user's unique identifier
      userName: 'rabie', // Replace DISPLAY_NAME with the user's name
      appId: 'my_application_key',  // Replace APPLICATION_KEY with the Application key received after Signup from https://www.applozic.com/signup.html
        ojq: $original,
        maxAttachmentSize: 25, //max attachment size in MB
        desktopNotification: true,
        locShare: false,
        googleApiKey: "AIzaSyDKfWHzu9X7Z2hByeW4RRFJrD9SizOzZt4",
        onInit: function() {  
                      $applozic.fn.applozic('loadTab', ''); 
                      //Todo: Register your push notification here. registerPushNotifications();
               }
   });
4

0 回答 0