Add push notification code snippet to template app and sample apps