thread warnings in Phonegap/Cordova app

后端 未结 1 1322
粉色の甜心
粉色の甜心 2021-02-05 10:14

I am getting these two thread warnings compiling on an iPhone (iOS 6):

THREAD WARNING: [\'InAppBrowser\'] took \'260.519043\' ms. Plugin should use a ba         


        
1条回答
  •  南方客
    南方客 (楼主)
    2021-02-05 10:54

    Look at the Phonegap Documentation and search for "Threading" They explain that you might want to run the thread in the Background instead of the main one.

    Apple doesn't like Blocked UI so you need to find a way to cancel your call if it takes more than 10 milliseconds.

    Although you are not getting errors, just warnings.

    0 讨论(0)
提交回复
热议问题