The Application_RemoteNotification event will be raised when a message arrives while the app is in the foreground. If the app is not in the foreground then a standard alert message will appear. The user can click on the message to the start the app. The Application_RemoteNotification event will be fired after the app is started.