SVProgressHUD
을 앱에 이미 구현했습니다. 이 앱 알림 기능에 존재합니다. 알림을받은 후 클릭하면 홈 페이지가 열리고 특정 페이지로 이동합니다. 이 상황에서 알림을 클릭하면 특정 페이지를 탐색 할 때까지 SVProgressHUD
을 표시하고 싶습니다. 이미 'registerForPushNotification
'방법 아래에 SVProgressHUD
기능을 구현했지만 작동하지 않습니다. 특정 페이지로 이동 한 후 작동 중입니다. 그래서 나는 내가 무엇을 할 수 있는지 이해하지 못한다. 아무도 도와주세요. 가능한가?iOS에서 클릭 알림을 통해 앱을 열면 SVProgressHUD가 작동하지 않습니다.
0
A
답변
0
, 이 추가 :이 도움이 될 것입니다
//redirect to notification list if its from push notification click
NSMutableDictionary *notification = [launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey];
if (notification)
{
//this notification dictionary is same as your JSON payload whatever you gets from Push notification you can consider it as a userInfo dic in last parameter of method -(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
NSLog(@"%@",notification);
[SVProgressHUD showWithStatus:@"Please Wait"];
}
희망)
+0
. @ 탈 바르 비마니 – Swarup
어느 한 날을 제안하십시오, 그것은 가능하다 또는 그것은 나를 위해 작동하지 않습니다하지 – Swarup