1
我正在尝试开发已针对Android和iOS开发的应用程序的Windows通用应用程序版本。 我使用PushPlugin进行通知,但我不明白在Toast包中发送launchArgs参数的位置。PushPlugin中的launchArgs(科尔多瓦和Windows通用应用程序)
这是XML:
<toast activationType="background" launch="{"type":"toast":"param1":"12345":"param2":"67890"}">
<visual>
<binding template="ToastGeneric">
<text id="1">'.$subject.'</text>
<text id="2">'.$message.'</text>
</binding>
</visual>
</toast>
在push.on(“通知”)的方法我希望能够找到“data.additionalData.foreground”(如果我的应用程序是前景 - 这完全适用于安卓和iOS),但是Windows中的这个属性总是未定义的。错误在哪里?
感谢每一个建议, 再见