2017-05-31 56 views
0

我正在使用cordova app-rate插件,但我的應用程序似乎不遵守useUntilPrompt首選項。我已經將它設置爲3,但它顯示每個負載上的彈出窗口。我嘗試過使用promtForRating(true),promtForRating(false)和promtForRating()。他們都沒有得到期望的結果,即僅在應用程序的3次加載後才顯示彈出窗口。Cordova AppRate Plugin usesUntilPrompt not working

有沒有人有這個插件和useUntilPrompt偏好成功?

AppRate.preferences.storeAppURL.ios = 'xxxx'; 
AppRate.preferences.usesUntilPrompt = 3; 
AppRate.promptForRating(); 

回答

1

看起來API在最新版本中已被更改。你必須調用:

AppRate.promptForRating(假)

然後,usesUntilPrompt計數器將被視爲它似乎。看看這個link欲瞭解更多相同的信息。