react-native-firebase icon indicating copy to clipboard operation
react-native-firebase copied to clipboard

[📚] iOS Notification Images Incorrect / False Steps!

Open Sotiris-Bekiaris opened this issue 4 months ago • 2 comments

I just wasted an entire Saturday just trying to figure out how I am supposed to setup the Notification Service Extension.

Firstly, the steps shown do not match with the gifs! Someone should responsibly update either the code or the gifs please!

Secondly, it is never mentioned that the target should be in Objective-C. The reader has to figure it out once they reach the header file addition.

Thirdly, the use_frameworks! :linkage => :static simply does not make sense! If you create a new react native project you can see that the Podfile already has the following code

linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
  Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
  use_frameworks! :linkage => linkage.to_sym
end

This creates a conflict and breaks the pod install.

Even if you manage to run pod install without getting errors, the build always fails. I keep getting unreadable amount of errors. I tried every possible solution but I do not think there is a way around this.

I am getting this:

** BUILD FAILED **


The following build commands failed:
        ScanDependencies Library/Developer/Xcode/DerivedData/ProjectName-gwlcuumkhpwxjdcjuyzpugjhjmuz/Build/Intermediates.noindex/ProjectName.build/Debug-iphoneos/ImageNotification.build/Objects-normal/arm64/NotificationService.o ios/ImageNotification/NotificationService.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'ImageNotification' from project 'ProjectName')
        Building workspace ProjectName with scheme ProjectName and configuration Debug
(2 failures)

Please someone at least add a disclaimer in the documentation page that with the latest versions of Xcode and React Native those steps might a complete waste of time.

Sotiris-Bekiaris avatar Oct 12 '24 18:10 Sotiris-Bekiaris