How to know the app is invoked from background process or not
<p>Thanks in advance.<br>
      I used push notification service in my application.If the app is running in background i am able get the alert view, but the app is in active state it is not displaying alert. Is there any way to display alert. <br>
           Actually to display alert i am creating an alert in 
        - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo  method. <br>
                 But there is a problam with this alert i.e., of the app is running in background we will get remote alert at the same time we will get this alert also. <br>
             So is there any way to find if the app is in active state or in background while receiving remote notification using  didReceiveRemoteNotification method.</p>
