Answered by:
Toast Notification Error - The application identifier provided is invalid.

Question
-
Hello
I need to add a Toast notification to a Metro html 5 app, but the invocation to the function Windows.UI.Notifications.ToastNotificationManager.createToastNotifier(); always throws the following exception :
0x803e0102 - JavaScript runtime error: The application identifier provided is invalid.
I used the procedure mentioned in the quickstart http://msdn.microsoft.com/en-us/library/windows/apps/hh465448.aspx, and tried also in a new blank project but the results are the same.
Where is the application identifier, and this identifier can be modified?
Is something missing in the Quickstart or something in my visual studio installation is wrong?
Thanks
Friday, May 4, 2012 3:50 PM
Answers
-
Finally, the toast notification is working and the search contract is back again.
Here what i did:
- Change the display name
- Delete old TemporaryKey
- Choose a certificate and create a new test certificate with a different publisherId
- Change publisher display name.
- For some reason while making the changes to Packaging section the "search" supported declaration disappeared so i added it again.
Thanks for your responses jrboddie.
- Marked as answer by checo64 Saturday, May 5, 2012 4:29 AM
Saturday, May 5, 2012 4:28 AM
All replies
-
Did you remember to update the App Manifest to be "Toast Capable"?Friday, May 4, 2012 4:19 PM
-
Yes, the appManifest is set to be "Toast Capable" also the "Toast Notifications" are enabled in windows 8 PC Settings .Friday, May 4, 2012 9:36 PM
-
I found a similar problem report on StackOverflow. The person reporting the problem was running the application in Simulator mode. When he switched Visual Studio to run on Local Machine, notifications worked correctly.Saturday, May 5, 2012 12:08 AM
-
I forgot to mention that, the app is running on the local machine, i tried to deploy the app on the simulator too but the error persist.
Making changes to the app manifest is not working too, I tried to define another packagename and publisher but now the search contract is broken too, i'm getting the following error:
0x80070005 - JavaScript runtime error: Access is denied.
WinRT information: The search extension must be specified in the manifest in order to use the Search Pane APIs.in the call:
appModel.Search.SearchPane.getForCurrentView().onquerysubmitted = function (eventObject) { nav.navigate(searchPageURI, eventObject); };
Saturday, May 5, 2012 4:01 AM -
Finally, the toast notification is working and the search contract is back again.
Here what i did:
- Change the display name
- Delete old TemporaryKey
- Choose a certificate and create a new test certificate with a different publisherId
- Change publisher display name.
- For some reason while making the changes to Packaging section the "search" supported declaration disappeared so i added it again.
Thanks for your responses jrboddie.
- Marked as answer by checo64 Saturday, May 5, 2012 4:29 AM
Saturday, May 5, 2012 4:28 AM -
Is the toast notification working in the simulator though?Tuesday, June 19, 2012 10:26 PM