I am implementing GCM push notification service, for that I used Service class to extend my class. So Service that I implemented is running in background continuously. But I am not getting any notification when app is idle for long time.It is working only for, when app is running in stack.
I know, we cannot get notification when App is close from Stack.
Please help me to get notification when app is not running for long time (like Whatsapp or Gmail).
I used IntentService but it is working only when app is running(foreground or background).