2017-12-22 19 views
0

SVProgressHUDを他のページに既にアプリに実装しています。このアプリ通知機能では存在します。通知を受け取った後、クリックしてホームページを開き、特定のページをナビゲートします。このような状況では、特定のページをナビゲートするまでSVProgressHUDと表示したいときに通知をクリックしたいと思います。私はすでに 'registerForPushNotification'メソッドの下でSVProgressHUDの機能を実装しましたが、機能しません。特定のページに移動した後に機能しています。だから私は何ができるのか分からない。誰か助けてください。出来ますか? didFinishLaunchingWithOptionsでiOSでクリック通知でアプリを開いたときにSVProgressHUDが機能しない

+0

してください、それは私のために働いていない – Swarup

答えて

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

可能かどうかです。 @Dhaval Bhimani – Swarup

関連する問題