Fix sample snippet for push notification.

Sample snippet causes compile error.
Please check it.