added SDK level check because the Notificationservice is not available
before API Level 18