Fix sample snippet for push notification.

Sample snippet cause compile error.
Please check it.