LoginSignup
14
6

More than 5 years have passed since last update.

Fall Creators Updateを適用するとトースト通知できなくなる

Last updated at Posted at 2017-10-28

Windows10でアクションセンターに(トースト)通知を行うには以下のようにします。

using Windows.UI.Notifications;

...

// トースト通知を飛ばす
ToastNotificationManager.CreateToastNotifier(appId).Show(notification);

これまでは特に注意しなくてもこの状態で通知が飛ばせていたのですが、Fall Creators Update適用後では一部通知ができなくなる可能性があります。

具体的には、CreateToastNotifierメソッドの引数にWindowsに登録済みのAppIDを渡さなれけばならなくなりました。正直AppIDが何なのかよく分かっていませんが、調べて分かったAppIDの具体例をいくつか載せておきます。

  • Power Shell
    • {1AC14E77-02E7-4E5D-B744-2EB1AE5198B7}\WindowsPowerShell\v1.0\powershell.exe
  • コマンドプロンプト
    • {1AC14E77-02E7-4E5D-B744-2EB1AE5198B7}\cmd.exe

追記(2017/10/29)

AppIDの確認方法がわかりました。どうやらAppUserModelIdのことを指しているみたいです。

  1. Win + Rでファイル名を指定して実行ウィンドウを表示
  2. explorer.exe shell:AppsFolderを入力しOKを押下
  3. 表示されたエクスプローラの何もない部分で右クリック
  4. [表示]-[詳細]を選択
  5. [並べ替え]-[その他]でAppUserModelIdにチェックを入れる

これでアプリケーションのAppUserModelIdを調べることができます。もっといい方法があるかもしれませんが取り急ぎメモ程度に追記しました。

14
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
6