andrehtissot / cordova-plugin-fcm-with-dependecy-updated

Google FCM Push Notifications Cordova Plugin
MIT License
210 stars 277 forks source link

IOS firebase module not found ionic 3 #108

Closed posdevelopers closed 4 years ago

posdevelopers commented 4 years ago

Hi , it's 24 hours and i am stuck on the below issue with this plugin on ios , can anyone help me please please . i am using ionic 3 working fine on android , but on ios it is not building and give the below error , tried every thing , xcode 11.

fatal error: module 'Firebase' not found @import Firebase;


1 error generated.
posdevelopers commented 4 years ago

oh God, i am using sudo command to install fcm plugin , i removed it and now project is build successfully .

andrehtissot commented 4 years ago

Yeah, it's not recommended. Some dependencies, like cocoapods, even refuse to run with that level of access.

Please let me know if you face another issue.

posdevelopers commented 4 years ago

Thank you for wonderful support , let me know if i can use fcm plugin on ionic 3 like this

import { FCM } from '@ionic-native/fcm';

posdevelopers commented 4 years ago

WARN: Ionic Native: tried calling FCM.getToken, but the FCM plugin is not installed. 2020-07-02 14:34:15.812495+0500 Kitabcha[1709:1335874] WARN: Install the FCM plugin: 'ionic cordova plugin add cordova-plugin-fcm-with-dependecy-updated'

posdevelopers commented 4 years ago

When i try on real device then it is giving me above error

andrehtissot commented 4 years ago

Thank you for wonderful support , let me know if i can use fcm plugin on ionic 3 like this

import { FCM } from '@ionic-native/fcm';

No. @ionic-native/fcm is outdated.

Please import like:

import { FCM } from 'cordova-plugin-fcm-with-dependecy-updated/ionic/v4';
posdevelopers commented 4 years ago

Let me try this thank you

posdevelopers commented 4 years ago

Hi i am trying this and having same error again

andrehtissot commented 4 years ago

@posdevelopers would you be more specific about which error you got again?

posdevelopers commented 4 years ago

Hi i am able to build and notification is received but when i am trying to upload it to app store then uiwebview email received from the apple

posdevelopers commented 4 years ago

previously without fcm it is uploaded to app store but after installing this plugin fcm with 7.0.5 version it is generating uiwebview error ,please help on this

posdevelopers commented 4 years ago

my cordova plugin list is : com.telerik.plugins.nativepagetransitions 0.6.5 "Native Page Transitions" cordova-plugin-android-permissions 1.0.2 "Permissions" cordova-plugin-badge 0.8.8 "Badge" cordova-plugin-device 2.0.3 "Device" cordova-plugin-fcm-with-dependecy-updated 7.0.5 "Cordova FCM Push Plugin" cordova-plugin-fullscreen 1.1.0 "cordova-plugin-fullscreen" cordova-plugin-geolocation 4.0.2 "Geolocation" cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard" cordova-plugin-ionic-webview 4.2.1 "cordova-plugin-ionic-webview" cordova-plugin-nativeaudio 3.0.9 "Cordova Native Audio" cordova-plugin-nativestorage 2.3.2 "NativeStorage" cordova-plugin-network-information 2.0.2 "Network Information" cordova-plugin-splashscreen 5.0.4 "Splashscreen" cordova-plugin-statusbar 2.4.3 "StatusBar" cordova-plugin-vibration 3.1.1 "Vibration" cordova-plugin-whitelist 1.3.4 "Whitelist" cordova-sms-plugin 1.0.0 "Cordova SMS Plugin" cordova-sqlite-storage 2.6.0 "Cordova sqlite storage plugin" cordova.plugins.diagnostic 4.0.12 "Diagnostic" mx.ferreyra.callnumber 0.0.2 "Cordova Call Number Plugin"

posdevelopers commented 4 years ago

already added WKWebViewOnly in config file and other things

posdevelopers commented 4 years ago

I have also received push notification everything is working fine but not be able to upload on app store and it is generating the error of uiwebview

posdevelopers commented 4 years ago

Hi i have resolved there is uiwebview in native transition plugin i removed it and now app is able to upload on app store and does not generate the warning of uiwebview depcreated https://github.com/Telerik-Verified-Plugins/NativePageTransitions Thank you

naveenm21 commented 3 years ago

Open platfroms/ios/podfile

# DO NOT MODIFY -- auto-generated by Apache Cordova
source 'https://github.com/CocoaPods/Specs.git'
source 'https://cdn.cocoapods.org/'
platform :ios, '11.0'
use_frameworks!
target 'Sampleapp' do
    project 'Sampleapp.xcodeproj'
    pod 'Firebase'
    pod 'Firebase/Analytics'
    pod 'Firebase/Messaging'
end

then pod update

hope it helps