我在iOS中有一个离子应用程序,我们在其中显示一个本机屏幕并在其中调用Web服务。从服务器获得响应后,我们将响应再次发送到离子屏幕并关闭本机屏幕。
但是回调无法正常工作
警告:离子本机:deviceready在5000毫秒内未触发。当插件处于不一致状态时,可能会发生这种情况。尝试从plugins /中删除插件,然后重新安装。
public static function updateLessPaymentHead(int $receivable_payment_head_id, int $total_receivable)
{
$payment_head = DB::table('receivables_payment_head')
->where('id', $receivable_payment_head_id)
->update(
['total_receivables' => DB::raw('total_receivables' - $total_receivable),
'total_payment' => DB::raw('total_payment' - $total_receivable),
]);
return $payment_head;
}
iOS代码是
this.nativewebview.nativeMethod({}).subscribe((result) => {
console.log('SUCCESS API CALL FROM NATIVE ------ >>>>> ');
this.handleCloseWebView();
}, (err) => {
console.log(err);
});
谁能告诉我可能是什么问题?