Using sample app code for notifications