events.action: opened
events.author: klausbreyer
events.masked_author: username_0
events.text: 1. What version of RN and react-native-fcm are you running?
  RN 0.56
  fcm 16.1
  
  2. What device are you using? (e.g iOS9 emulator, Android 6 device)?
  Simulator
  
  3. Is your app running in foreground, background or not running?
  not running. 
  
  I am really clueless how to start with react native fcm. 
  
  /Users/kb1/versioned/rsvptrainingapp/ios/rsvptrainingapp/AppDelegate.m:14:9: 'RNFIRMessaging.h' file not found
  
  Pods are there. 
  ```
  ➜  ios git:(master) pod install
  Analyzing dependencies
  Fetching podspec for `react-native-fcm` from `../node_modules/react-native-fcm`
  Downloading dependencies
  Using BoringSSL (10.0.6)
  Using Firebase (5.3.0)
  Using FirebaseAnalytics (5.0.1)
  Using FirebaseCore (5.0.4)
  Using FirebaseFirestore (0.12.4)
  Using FirebaseInstanceID (3.1.1)
  Using FirebaseMessaging (3.0.2)
  Using GoogleToolboxForMac (2.1.4)
  Using Protobuf (3.6.1)
  Installing React (0.11.0)
  Using gRPC (1.14.1)
  Using gRPC-Core (1.14.1)
  Using gRPC-ProtoRPC (1.14.1)
  Using gRPC-RxLibrary (1.14.1)
  Using leveldb-library (1.20)
  Using nanopb (0.3.8)
  Installing react-native-fcm (16.1.0)
  Generating Pods project
  Integrating client project
  Sending stats
  Pod installation complete! There are 4 dependencies from the Podfile and 17 total pods installed.
  
  [!] Automatically assigning platform `ios` with version `9.0` on target `rsvptrainingapp` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
  
  [!] The `rsvptrainingapp-tvOSTests [Debug]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods-rsvptrainingapp-tvOSTests/Pods-rsvptrainingapp-tvOSTests.debug.xcconfig'. This can lead to problems with the CocoaPods installation
      - Use the `$(inherited)` flag, or
      - Remove the build settings from the target.
  
  [!] The `rsvptrainingapp-tvOSTests [Release]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods-rsvptrainingapp-tvOSTests/Pods-rsvptrainingapp-tvOSTests.release.xcconfig'. This can lead to problems with the CocoaPods installation
      - Use the `$(inherited)` flag, or
      - Remove the build settings from the target.
  
  [!] The `rsvptrainingappTests [Debug]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods-rsvptrainingappTests/Pods-rsvptrainingappTests.debug.xcconfig'. This can lead to problems with the CocoaPods installation
      - Use the `$(inherited)` flag, or
      - Remove the build settings from the target.
  
  [!] The `rsvptrainingappTests [Release]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods-rsvptrainingappTests/Pods-rsvptrainingappTests.release.xcconfig'. This can lead to problems with the CocoaPods installation
      - Use the `$(inherited)` flag, or
      - Remove the build settings from the target.
  
  [!] React has been deprecated
  ```
  
  
  Everything is linked
  ```
  ➜  rsvptrainingapp git:(master) ✗ react-native link
  Scanning folders for symlinks in /Users/kb1/versioned/rsvptrainingapp/node_modules (13ms)
  rnpm-install info Platform 'ios' module react-native-fcm is already linked
  rnpm-install info Platform 'android' module react-native-fcm is already linked
  rnpm-install info Platform 'ios' module react-native-firebase is already linked
  rnpm-install info Platform 'android' module react-native-firebase is already linked
  ```
  
  
  I am really clueless what to try next. 
  
  This is my AppDelegate.m
  ```
  /**
   * Copyright (c) 2015-present, Facebook, Inc.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   */
  
  #import "AppDelegate.h"
  
  #import <React/RCTBundleURLProvider.h>
  #import <React/RCTRootView.h>
  #import "RNFirebaseNotifications.h"
  #import <Firebase.h>
  #import "RNFIRMessaging.h"
  
  @implementation AppDelegate
  
  - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
    [FIRApp configure];
    NSURL *jsCodeLocation;
  
    jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
  
    RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
                                                        moduleName:@"rsvptrainingapp"
                                                 initialProperties:nil
                                                     launchOptions:launchOptions];
    rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
  
    self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    UIViewController *rootViewController = [UIViewController new];
    rootViewController.view = rootView;
    self.window.rootViewController = rootViewController;
    [self.window makeKeyAndVisible];
    
    // add before return YES;
    [FIRApp configure];
    [[UNUserNotificationCenter currentNotificationCenter] setDelegate:self];
    
    return YES;
  }
  
  // add before @end
  - (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions))completionHandler
  {
    [RNFIRMessaging willPresentNotification:notification withCompletionHandler:completionHandler];
  }
  
  - (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void (^)())completionHandler
  {
    [RNFIRMessaging didReceiveNotificationResponse:response withCompletionHandler:completionHandler];
  }
  
  - (void)application:(UIApplication *)application didReceiveRemoteNotification:(nonnull NSDictionary *)userInfo fetchCompletionHandler:(nonnull void (^)(UIBackgroundFetchResult))completionHandler{
    [RNFIRMessaging didReceiveRemoteNotification:userInfo fetchCompletionHandler:completionHandler];
  }
  @end
  
  ```
events.title: RNFIRMessaging.h' file not found
events.type: issue
events.action: created
events.author: tunm1228
events.masked_author: username_1
events.text: I am having the following issue
events.type: comment
events.action: created
events.author: evollu
events.masked_author: username_2
events.text: try remove `DerivedData` folder for a clean build
  since you are using rnpm, do you see RNFIRMessaging under Library in Project Navigator?
events.type: comment
events.action: created
events.author: klausbreyer
events.masked_author: username_0
events.text: @username_2 I deleted the DerivedData. 
  
  I do not see a RNFIRMessaging under Library. 
  ![image](https://user-images.githubusercontent.com/32771/44383508-3662a500-a519-11e8-91b3-dfb4cc188d67.png)
events.type: comment
events.action: created
events.author: klausbreyer
events.masked_author: username_0
events.text: @username_2 
  at first i did not see a RNFIRMessaging under library. 
  
  Then I added it via drag and drop and linked it manually: 
  ![image](https://user-images.githubusercontent.com/32771/44384110-52674600-a51b-11e8-8786-e3b3ca7d3c68.png)
  
  I added it to all 4 targets (iphone + tests + tvos + tests - recursive. 
  
  also cleaned Xcode, deleted DerivedData, restarted xcode and compiled again. 
  
  sidenote:
  
  though I am a cocoa pods user, I linked via cli: 
  ```➜  rsvptrainingapp git:(master) ✗ react-native link
  Scanning folders for symlinks in /Users/kb1/versioned/rsvptrainingapp/node_modules (14ms)
  rnpm-install info Platform 'ios' module react-native-fcm is already linked
  rnpm-install info Platform 'android' module react-native-fcm is already linked
  rnpm-install info Platform 'ios' module react-native-firebase is already linked
  rnpm-install info Platform 'android' module react-native-firebase is already linked
  ```
events.type: comment
events.action: closed
events.author: klausbreyer
events.masked_author: username_0
events.type: issue
events.action: created
events.author: klausbreyer
events.masked_author: username_0
events.text: omg tuns out it works, after I followed closely your readme instructions. 
  - There were also not Pod under libraries and I had not done the link with binaries stuff. 
  
  
  I am very sorry about the circumstances. in fact, this is one of the most detailed and best explanations for build + link that i have run into in 3 years react native.
  
  i just crossed the rn firebase tutorial and hadn't read your own readme.
events.type: comment