Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cocoa/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter 颤振推送通知和后台提取_Flutter_Firebase Cloud Messaging_Fetch_Push - Fatal编程技术网

Flutter 颤振推送通知和后台提取

Flutter 颤振推送通知和后台提取,flutter,firebase-cloud-messaging,fetch,push,Flutter,Firebase Cloud Messaging,Fetch,Push,我想在推送通知时触发获取数据。当应用程序位于前台时,它可以正常工作。如果应用程序位于后台,则会弹出通知窗口,但不会触发从url获取数据。你知道为什么吗。对于通知,我使用Firebase云消息传递。我的目的是在有任何通知时从API获取数据

我想在推送通知时触发获取数据。当应用程序位于前台时,它可以正常工作。如果应用程序位于后台,则会弹出通知窗口,但不会触发从url获取数据。你知道为什么吗。对于通知,我使用Firebase云消息传递。我的目的是在有任何通知时从API获取数据