I want to implement push notification like Yo when the app is already running.
I already wrote some codes for it but i found that it is not possible to show notification view when the app is already running.
How can I implement the notification view like local notification on the top not like alertview.
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))handler {
if (application.applicationState == UIApplicationStateActive) {
hogehoge...
}
if (application.applicationState == UIApplicationStateInactive) {
}
if(application.applicationState == UIApplicationStateBackground) {
} }