title: NO visible interface for FIRMessaging declare the method setRemoteMessageDelegate
body: <p>after implementing <strong>FCM</strong> messaging using <a href="https://firebase.google.com/docs/cloud-messaging/ios/client" rel="nofollow noreferrer">FCM tutorial for ios</a> here the code that i use in appdelegate.m</p>
  
  <pre><code>     if (floor(NSFoundationVersionNumber) &lt;= NSFoundationVersionNumber_iOS_9_x_Max) {
          UIUserNotificationType allNotificationTypes =
          (UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge);
          UIUserNotificationSettings *settings =
          [UIUserNotificationSettings settingsForTypes:allNotificationTypes categories:nil];
          [[UIApplication sharedApplication] registerUserNotificationSettings:settings];
      } else {
          // iOS 10 or later
  #if defined(__IPHONE_10_0) &amp;&amp; __IPHONE_OS_VERSION_MAX_ALLOWED &gt;= __IPHONE_10_0
          UNAuthorizationOptions authOptions =
          UNAuthorizationOptionAlert
          | UNAuthorizationOptionSound
          | UNAuthorizationOptionBadge;
          [[UNUserNotificationCenter currentNotificationCenter]
           requestAuthorizationWithOptions:authOptions
           completionHandler:^(BOOL granted, NSError * _Nullable error) {
           }
           ];
  
          // For iOS 10 display notification (sent via APNS)
          [[UNUserNotificationCenter currentNotificationCenter] setDelegate:self];
          // For iOS 10 data message (sent via FCM)
          [[FIRMessaging messaging] setRemoteMessageDelegate:self]; // here the method is not defined // 
    #endif
      }
  </code></pre>
  
  <p><strong>here is the appdelegate.h</strong></p>
  
  <pre><code>    //
  //  AppDelegate.h
  //  lechef
  //
  //  Created by Zakaria Darwish on 9/5/16.
  //  Copyright © 2016 CodeBee. All rights reserved.
  //
  
  #import &lt;UIKit/UIKit.h&gt;
  #import "constant.h"
  #include &lt;AudioToolbox/AudioToolbox.h&gt;
  #import "MPGNotification.h"
  #include &lt;AudioToolbox/AudioToolbox.h&gt;
  #include "constant.h"
  @import UserNotifications;
  @import GoogleMaps;
  @import GooglePlaces;
  @import Firebase;
  @import FirebaseInstanceID;
  @import FirebaseMessaging;
  
  @interface AppDelegate : UIResponder &lt;UIApplicationDelegate,UNUserNotificationCenterDelegate&gt;
  
  @property (strong, nonatomic) UIWindow *window;
  
  
  @end
  </code></pre>
  
  <p>and i try to search for firemessaging delegate some people on stack says that keep update the library and it will be fixed <a href="https://stackoverflow.com/questions/39642936/firmessaging-delegate-error">here</a> i could not figure out what i am doing wrong .. </p>