2016-06-20 85 views
1

我正在嘗試開發已針對Android和iOS開發的應用程序的Windows通用應用程序版本。 我使用PushPlugin進行通知,但我不明白在Toast包中發送launchArgs參數的位置。PushPlugin中的launchArgs(科爾多瓦和Windows通用應用程序)

這是XML:

<toast activationType="background" launch="{&quot;type&quot;:&quot;toast&quot;:&quot;param1&quot;:&quot;12345&quot;:&quot;param2&quot;:&quot;67890&quot;}"> 
     <visual> 
      <binding template="ToastGeneric"> 
       <text id="1">'.$subject.'</text> 
       <text id="2">'.$message.'</text>           
      </binding> 
     </visual> 
    </toast> 

在push.on(「通知」)的方法我希望能夠找到「data.additionalData.foreground」(如果我的應用程序是前景 - 這完全適用於安卓和iOS),但是Windows中的這個屬性總是未定義的。錯誤在哪裏?

感謝每一個建議, 再見

回答

相關問題