Giter VIP home page Giter VIP logo

cordova-plugin-firebasex-test's Introduction

cordova-plugin-firebasex-test

This repo contains a Cordova project which builds a test app for cordova-plugin-firebasex which is a fork of cordova-plugin-firebase that has been updated to fix several issues.

CLI build instructions

git clone https://github.com/dpa99c/cordova-plugin-firebasex-test.git && cd cordova-plugin-firebasex-test
npm install

cordova platform add ios
cordova run ios

cordova platform add android
cordova run android

iOS build notes

iOS package ID

The configured package ID for this test project is uk.co.workingedge.firebase.test which I have registered with my Apple Developer Team in order to create an iOS provisioning profile with appropriate permissions.

Therefore in order to test this project on iOS, you will need to change the package ID to one which is associated with your Apple Developer Team and for which you have set appropriate capabilities.

Cocopods

cordova-plugin-firebasex relies on cordova@9/cordova-ios@5 support for the CocoaPods dependency manager in order to satify the iOS Firebase SDK library dependencies.

Therefore please make sure you have Cocoapods installed in your iOS build environment - setup instructions can be found here. Also make sure your local Cocoapods repo is up-to-date by running pod repo update.

Building in Xcode

If building your project in Xcode, you need to open YourProject.xcworkspace (not YourProject.xcodeproj) so both your Cordova app project and the Pods project will be loaded into Xcode.

Testing Cloud Messaging

If you want to test FCM using this project, you'll need to do the following:

iOS

  • Change the package ID in the config.xml to a package ID which is associated with your Apple Developer Team and for which you have set appropriate capabilities (i.e. enabled Push Notifications).
  • Set up a Firebase project and add an iOS app which is configured for your package ID.
  • Upload an auth key or APNS certificate for the package ID to the Firebase project
  • Download the GoogleService-Info.plist for your app and overwrite the one bundled with this project.
  • Build and run your project on an iOS device (iOS Simulator cannot receive push notifications).

Android

  • Change the package ID in the config.xml to another package ID.
  • Set up a Firebase project and add an Android app which is configured for your package ID.
  • Download the google-services.json for your app and overwrite the one bundled with this project.
  • Build and run your project on an Android device.

You can send notification (but not data) messages using the Firebase Console.

Messaging client

In order to send both data and notification messages for testing, this repo includes a messaging client written in nodejs to send predefined messages via the FCM v1 HTTP API for testing.

Setup messaging client

In order to setup the messaging client, you first need to download a "service account" private key file from your Firebase project and save it into the root of this repo:

  • Open your Firebase project in the Firebase Console
  • Go to "Project settings" > "Service accounts" tab
  • Press "Generate new private key" and save the file as service-account.json in the root of this cloned project repo.

Send test messages

  • In order to send test messages to your device, you first need to find the Firebase token for the app on the device.
  • To do this, build and run this app on the device and it should display the token.
  • Copy the token value (e.g. connect Safari Web Inspector/Chrome Dev Tools to the Webview)
  • You can then send the messages defined in the messages/ directory of this repo using the CLI in the root of the repo

Use the following syntax:

npm run-script send -- --token="<your_device_token>" --message=<message_name>.json

where <your_device_token> is the token you noted down and <message_name> is the name of a message file in the messages/ directory, for example:

npm run-script send -- --message=notification.json --token="cJlSa4UjtO0:APA91bFNDPVnHaS1__UTdNc8kt3uplnxBOcPGBbEO37J0FU3vFgGyud7gWDT2RJ5VmSJ68qFyiCu0y-WWcur7hE8RelRkzlS3RK6edFycpvm4K2szsMqMXOxEy72V9a41u6kaVh7U4nz"

Testing authentication

To test the authentication methods, you must configure each method for the target mobile platform as outlined in the plugin documentation for that method.

Android

Set your server client ID in www/js/config.js - see the Firebase documentation for where to find this. This is used for Google Sign In on Android.

Analytics DebugView

See this page for how to manually enable Firebase Analytics DebugView.

cordova-plugin-firebasex-test's People

Contributors

dpa99c avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cordova-plugin-firebasex-test's Issues

Notification Not Received When App Closed

Hello,

On Android 8.1.0 I am not receiving notifications when the app is closed.

I believe all other notification states are working correctly. When the app is in the background, I receive notifications which are sent to the system tray. When the app is in the foreground, the notification is delivered to the app to handle and not the system tray.

While figuring out what was going on, I came across autostart. When the app has autostart enabled I can then receive notifications when the app is closed.

I was wondering if there was a way to prompt/auto enable autostart and whether that could be part of this plugin?

Thanks

Unable to build for iOS - pods issue?

We're having some build problems with cordova-plugin-firebasex so I thought I would come and try this sample project first. However we are also getting errors here and I am hoping someone can advise.

I've cloned and set up as per readme:

git clone https://github.com/dpa99c/cordova-plugin-firebasex-test.git && cd cordova-plugin-firebasex-test
npm install

cordova platform add ios
cordova run ios

Build fails with the last parts being:

...
Code Signing /Users/ross/repos/cordova-plugin-firebasex-test/platforms/ios/build/emulator/FirebaseTest.app/Frameworks/nanopb.framework with Identity -
/usr/bin/codesign --force --sign -  --preserve-metadata=identifier,entitlements '/Users/ross/repos/cordova-plugin-firebasex-test/platforms/ios/build/emulator/FirebaseTest.app/Frameworks/nanopb.framework'
/Users/ross/repos/cordova-plugin-firebasex-test/platforms/ios/build/emulator/FirebaseTest.app/Frameworks/nanopb.framework: replacing existing signature

WriteAuxiliaryFile /Users/ross/Library/Developer/Xcode/DerivedData/FirebaseTest-aiflokqlqhchvbatlgsjsqbxhfhm/Build/Intermediates.noindex/FirebaseTest.build/Debug-iphonesimulator/FirebaseTest.build/Script-DBD93D91A9DD8FAD4CD6856A.sh (in target 'FirebaseTest' from project 'FirebaseTest')
    cd /Users/ross/repos/cordova-plugin-firebasex-test/platforms/ios
    write-file /Users/ross/Library/Developer/Xcode/DerivedData/FirebaseTest-aiflokqlqhchvbatlgsjsqbxhfhm/Build/Intermediates.noindex/FirebaseTest.build/Debug-iphonesimulator/FirebaseTest.build/Script-DBD93D91A9DD8FAD4CD6856A.sh

PhaseScriptExecution [CP]\ Copy\ Pods\ Resources /Users/ross/Library/Developer/Xcode/DerivedData/FirebaseTest-aiflokqlqhchvbatlgsjsqbxhfhm/Build/Intermediates.noindex/FirebaseTest.build/Debug-iphonesimulator/FirebaseTest.build/Script-DBD93D91A9DD8FAD4CD6856A.sh (in target 'FirebaseTest' from project 'FirebaseTest')
    cd /Users/ross/repos/cordova-plugin-firebasex-test/platforms/ios
    /bin/sh -c /Users/ross/Library/Developer/Xcode/DerivedData/FirebaseTest-aiflokqlqhchvbatlgsjsqbxhfhm/Build/Intermediates.noindex/FirebaseTest.build/Debug-iphonesimulator/FirebaseTest.build/Script-DBD93D91A9DD8FAD4CD6856A.sh
error: Resource "/Users/ross/Library/Developer/Xcode/DerivedData/FirebaseTest-aiflokqlqhchvbatlgsjsqbxhfhm/Build/Products/Debug-iphonesimulator/FirebaseInAppMessaging/InAppMessagingDisplayResources.bundle" not found. Run 'pod install' to update the copy resources script.

** BUILD FAILED **


The following build commands failed:
	PhaseScriptExecution [CP]\ Copy\ Pods\ Resources /Users/ross/Library/Developer/Xcode/DerivedData/FirebaseTest-aiflokqlqhchvbatlgsjsqbxhfhm/Build/Intermediates.noindex/FirebaseTest.build/Debug-iphonesimulator/FirebaseTest.build/Script-DBD93D91A9DD8FAD4CD6856A.sh
(1 failure)
xcodebuild: Command failed with exit code 65

I tried going into platforms/ios and running the following:

pod repo update
pod install

Then:

cd ../../
cordova run ios

But I still get the same error. I also tried updating config.xml ID to one under my developer profile, then removing platform directory and repeating steps--but no luck.

Any advice? I want to make sure I can get this test project working before raising any issues on main repo.

System details:

-> xcodebuild -version
Xcode 11.3.1
Build version 11C504

-> pod --version
1.8.4

-> npm --version
6.12.1

-> cordova --version
9.0.0 ([email protected])

Thanks!

Can't build with Xcode 13.3.1

Hello,
I can't build I have these 3 errors with Xcode 13.3.1

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:13:2: fatal error: 
      file
      '/Users/macmini/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/2T0KU6C7S1FQS/CoreImage-2L8M44C0CYIPM.pcm'
      is not a valid precompiled module file
#import <CoreImage/CoreImage.h>
 ^
1 error generated.
While building module 'FBLPromises' imported from /Users/macmini/Documents/EADV_IPAD_IOS9_8.2/cordova-plugin-firebasex-test/platforms/ios/Pods/GoogleUtilities/GoogleUtilities/Environment/URLSessionPromiseWrapper/NSURLSession+GULPromises.m:20:
In file included from <module-includes>:1:
/Users/macmini/Documents/EADV_IPAD_IOS9_8.2/cordova-plugin-firebasex-test/platforms/ios/Pods/Target Support Files/PromisesObjC/PromisesObjC-umbrella.h:2:9: fatal error: 
      could not build module 'UIKit'
#import <UIKit/UIKit.h>
 ~~~~~~~^
2 errors generated.
/Users/macmini/Documents/EADV_IPAD_IOS9_8.2/cordova-plugin-firebasex-test/platforms/ios/Pods/GoogleUtilities/GoogleUtilities/Environment/URLSessionPromiseWrapper/NSURLSession+GULPromises.m:20:9: fatal error: 
      could not build module 'FBLPromises'
#import <FBLPromises/FBLPromises.h>
 ~~~~~~~^
3 errors generated.

Capture d’écran 2022-05-12 à 14 37 33

Now FirebaseInstanceId.getInstance().getToken() is deprecated.

Envirement
"cordova-android": "^9.0.0",
"cordova-browser": "~6.0.0",
"cordova-custom-config": "^5.1.0",
"cordova-ios": "^6.2.0",
"cordova-plugin-androidx": "^3.0.0",
"cordova-plugin-androidx-adapter": "^1.1.3",
"cordova-plugin-console": "^1.1.0",
"cordova-plugin-enable-multidex": "^0.2.0",
"cordova-plugin-firebasex": "^11.0.3",
"cordova-plugin-whitelist": "~1.3.4",
"cordova-plugin-wkwebview-file-xhr": "^3.0.0"

Now i used android to get token is null , i check the plugin code , find an function getToken() is deprecated.
So i check it on firebase on https://firebase.google.com/docs/reference/android/com/google/firebase/iid/FirebaseInstanceId.

And it suggestion we maybe need to change it into FirebaseInstallations to get token

Or there are another reason for causing app can not get token.

iOS build error "cocoapods version is out-of-date"

greetings.. I've been trying for about a week now to get the cordova-plugin-firebasex plugin working in an Ionic 5 app with Angular 9, but I'm still having no luck.

the issue with my environment is that I don't have access to macOS, at least, not a recent enough version to build for the current iPadOS and iPhoneOS platforms. which means I'm limited to building iOS projects through Ionic AppFlow.

since I wasn't getting anywhere with my own project, I thought I'd try building this example project instead, just to see what happens. I cloned it locally, updated all project naming and ID references, dropped my own Android google-services.json and
iOS GoogleService-Info.plist into www/ and ran it in my local Android emulator with no issues.

in order to test the iOS side, I added the most basic Ionic wrapper info, and tried to run a build in AppFlow Package. but unfortunately I'm still not winning...

note: I did also run into issue dpa99c/cordova-plugin-firebasex#323 at one point in this process, so I have also removed the #dev branch reference from the plugin source URL, which made it install commit 753e52 (current master as of the time of writing).

I also found an article in Ionic's public support FAQ that provides a workaround to update CocoaPods, but looking at the order of the above logs, it doesn't seem to be helping.

anyways, the furthest I've managed to get is the cordova platform add ios command, which fails as follows:

[16:07:01]: --------------------------------------
[16:07:01]: --- Step: cordova platform add ios ---
[16:07:01]: --------------------------------------
[16:07:01]: $ cordova platform add ios
[16:07:01]: ▸ Running command: /Users/ionic/builds/nortech-international/RnD/software/common-dashboard-mobile/update_pods.sh /Users/ionic/builds/nortech-international/RnD/software/common-dashboard-mobile
[16:07:01]: ▸ Using cordova-fetch for cordova-ios@^6.0.0
[16:07:01]: ▸ Adding ios project...
[16:07:02]: ▸ Creating Cordova project for the iOS platform:
[16:07:02]: ▸ Path: platforms/ios
[16:07:02]: ▸ Package: com.nortech.dashboardmobile
[16:07:02]: ▸ Name: LIVE
[16:07:02]: ▸ iOS project created with [email protected]
[16:07:02]: ▸ Installing "cordova-plugin-customfcmreceiver" for ios
[16:07:03]: ▸ Discovered saved plugin "cordova-plugin-whitelist". Adding it to the project
[16:07:03]: ▸ Installing "cordova-plugin-whitelist" for ios
[16:07:03]: ▸ Adding cordova-plugin-whitelist to package.json
[16:07:03]: ▸ Discovered saved plugin "cordova-plugin-firebasex". Adding it to the project
[16:08:02]: ▸ Installing "cordova-plugin-firebasex" for ios
[16:08:02]: ▸ Installing "cordova-plugin-androidx" for ios
[16:08:02]: ▸ Installing "cordova-plugin-androidx-adapter" for ios
[16:08:05]: ▸ Failed to install 'cordova-plugin-firebasex': Error: cocoapods version is out-of-date - please update to cocoapods@^1.9.1 - current version: 1.7.5
[16:08:05]: ▸ at checkCocoapodsVersion (/Users/ionic/builds/nortech-international/RnD/software/common-dashboard-mobile/plugins/cordova-plugin-firebasex/scripts/ios/before_plugin_install.js:21:15)
[16:08:05]: ▸ at module.exports (/Users/ionic/builds/nortech-international/RnD/software/common-dashboard-mobile/plugins/cordova-plugin-firebasex/scripts/ios/before_plugin_install.js:7:5)
[16:08:05]: ▸ at runScriptViaModuleLoader (/usr/local/lib/node_modules/@ionic-enterprise/cordova/node_modules/@ionic-enterprise/cordova-lib/src/hooks/HooksRunner.js:181:32)
[16:08:05]: ▸ at runScript (/usr/local/lib/node_modules/@ionic-enterprise/cordova/node_modules/@ionic-enterprise/cordova-lib/src/hooks/HooksRunner.js:157:16)
[16:08:05]: ▸ at /usr/local/lib/node_modules/@ionic-enterprise/cordova/node_modules/@ionic-enterprise/cordova-lib/src/hooks/HooksRunner.js:125:20
[16:08:05]: ▸ at processTicksAndRejections (internal/process/task_queues.js:97:5)
[16:08:05]: ▸ Failed to restore plugin "cordova-plugin-firebasex" from config.xml. You might need to try adding it again. Error: Error: cocoapods version is out-of-date - please update to cocoapods@^1.9.1 - current version: 1.7.5
[16:08:05]: ▸ Discovered saved plugin "cordova-custom-config". Adding it to the project
[16:08:05]: ▸ Installing "cordova-custom-config" for ios
[16:08:06]: ▸ Adding cordova-custom-config to package.json
[16:08:06]: ▸ Discovered saved plugin "cordova-plugin-dialogs". Adding it to the project
[16:08:11]: ▸ Installing "cordova-plugin-dialogs" for ios
[16:08:11]: ▸ Adding cordova-plugin-dialogs to package.json
[16:08:11]: ▸ Discovered saved plugin "cordova-plugin-enable-multidex". Adding it to the project
[16:08:11]: ▸ Installing "cordova-plugin-enable-multidex" for ios
[16:08:12]: ▸ Adding cordova-plugin-enable-multidex to package.json
[16:08:12]: ▸ Discovered saved plugin "cordova-plugin-hello-c". Adding it to the project
[16:08:12]: ▸ Installing "cordova-plugin-hello-c" for ios
[16:08:12]: ▸ Adding cordova-plugin-hello-c to package.json
[16:08:12]: ▸ Overwriting existing resource file at platforms/ios/LIVE/Resources/res/ios/sound/blackberry.caf
[16:08:12]: ▸ Overwriting existing resource file at platforms/ios/LIVE/Resources/res/ios/sound/crystal.caf
[16:08:12]: ▸ Overwriting existing resource file at platforms/ios/LIVE/Resources/res/ios/sound/msn.caf
[16:08:12]: ▸ Overwriting existing resource file at platforms/ios/LIVE/Resources/res/ios/pn-actions.json
[16:08:12]: ▸ cordova-plugin-firebasex: Preparing Firebase on iOS
[16:08:12]: ▸ cordova-plugin-firebasex: Applied IOS_STRIP_DEBUG to Podfile
[16:08:12]: ▸ Running command: /Users/ionic/builds/nortech-international/RnD/software/common-dashboard-mobile/run_pods.sh /Users/ionic/builds/nortech-international/RnD/software/common-dashboard-mobile

@dpa99c, really sorry to bug you, but please can you tell me: am I simply screwed without having a Mac myself, or am I perhaps doing something else wrong here?

I do not receive notifications on iOS

I build cordova app for android and ios, with Firebase.
On android it works perfect.
On IOS messages are not received on the phone.
Everything seems right -
I receive FCM and APNS tokens.
permission popup is shown for FirebasePlugin.grantPermission

I tried to follow this sample, step by step, but got this error -
cordova.plugin.customfcmreceiver.registerReceiver is not a function
What is the purpose of this plugin?

What else could be the problem if receiving the token?

Get APNS returning null value

Using iOS build, Get APNS returns a null value. Also, I do not receive notifications on iOS, so, are this related to APNS ?

The project is correctly set on Firebase & App Center. Is this normal or does it requires a step that i'm not aware of ?

Also do I really need APNS Token to send notfication to specific users ? Can't I also use FCM Token ?

Failing build from fresh clone

Environment

  • cordova 10.0.0
  • node v12.20.2
  • pod 1.10.1
  • "cordova-plugin-firebasex": "^11.0.3"
  • "cordova-ios": "^6.2.0",
  • code 12.4

Script

git clone https://github.com/dpa99c/cordova-plugin-firebasex-test.git && cd cordova-plugin-firebasex-test
npm install

cordova platform add ios
cordova run ios

Output running cordova build ios

PhaseScriptExecution [CP]\ Copy\ Pods\ Resources /Users/eduardo/Library/Developer/Xcode/DerivedData/FirebaseTest-fgmbbyzhnpzirydwiqdcbxrrqyzp/Build/Intermediates.noindex/FirebaseTest.build/Debug-iphonesimulator/FirebaseTest.build/Script-8A672495FED87DA4CDF32A51.sh (in target 'FirebaseTest' from project 'FirebaseTest')
    cd /Users/eduardo/Documents/Code/cordova-plugin-firebasex-test/platforms/ios
    /bin/sh -c /Users/eduardo/Library/Developer/Xcode/DerivedData/FirebaseTest-fgmbbyzhnpzirydwiqdcbxrrqyzp/Build/Intermediates.noindex/FirebaseTest.build/Debug-iphonesimulator/FirebaseTest.build/Script-8A672495FED87DA4CDF32A51.sh
/Users/eduardo/Documents/Code/cordova-plugin-firebasex-test/platforms/ios/Pods/FirebaseFirestore/FirebaseFirestore/Resources/gRPCCertificates-Cpp.bundle
error: Resource "/Users/eduardo/Library/Developer/Xcode/DerivedData/FirebaseTest-fgmbbyzhnpzirydwiqdcbxrrqyzp/Build/Products/Debug-iphonesimulator/FirebaseInAppMessaging/InAppMessagingDisplayResources.bundle" not found. Run 'pod install' to update the copy resources script.

warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'GoogleSymbolUtilities' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'GoogleTagManager' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'GoogleAnalytics' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'GoogleUtilitiesLegacy' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'FirebaseFirestore' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'FirebaseAnalytics' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'GoogleAppMeasurement' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'FirebasePerformance' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'GoogleSignIn' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'FirebaseInstallations' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'FirebaseCrashlytics' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'nanopb' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'FirebaseABTesting' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'GoogleUtilities' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'GoogleDataTransport' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'FirebaseMessaging' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'GTMAppAuth' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'FirebaseRemoteConfig' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'FirebaseInstanceID' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'FirebaseCoreDiagnostics' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'FirebaseCore' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'FirebaseAuth' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'AppAuth' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'GoogleTagManager-TagManagerResources' from project 'Pods')
** BUILD FAILED **


The following build commands failed:
	PhaseScriptExecution [CP]\ Copy\ Pods\ Resources /Users/eduardo/Library/Developer/Xcode/DerivedData/FirebaseTest-fgmbbyzhnpzirydwiqdcbxrrqyzp/Build/Intermediates.noindex/FirebaseTest.build/Debug-iphonesimulator/FirebaseTest.build/Script-8A672495FED87DA4CDF32A51.sh
(1 failure)
xcodebuild: Command failed with exit code 65

Output trying to build through xcode

Could not build module Firebase
FirebaseCore/FirebaseCore.h' file not found

Pods

I also tried going into the plugins folder and manually running pod repo update && pod install and just pod install, as suggested in the readme.

Error building ios in xcode 9.2

I made the clone as it describes by adding the platforms and running, but on ios I get some errors.
What am I forgetting or doing wrong for kindness?

Build target FirebaseTest of project FirebaseTest with configuration Debug

Ld /Users/balzer/Library/Developer/Xcode/DerivedData/FirebaseTest-fhowossayshwxpdgqpcmfbvmzwhr/Build/Products/Debug-iphonesimulator/FirebaseTest.app/FirebaseTest normal x86_64
cd /Users/balzer/www/cordova-plugin-firebase-test/platforms/ios
export IPHONEOS_DEPLOYMENT_TARGET=10.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk -L/Users/balzer/Library/Developer/Xcode/DerivedData/FirebaseTest-fhowossayshwxpdgqpcmfbvmzwhr/Build/Products/Debug-iphonesimulator -F/Users/balzer/Library/Developer/Xcode/DerivedData/FirebaseTest-fhowossayshwxpdgqpcmfbvmzwhr/Build/Products/Debug-iphonesimulator -F/Users/balzer/Library/Developer/Xcode/DerivedData/FirebaseTest-fhowossayshwxpdgqpcmfbvmzwhr/Build/Products/Debug-iphonesimulator/FirebaseAuth -F/Users/balzer/Library/Developer/Xcode/DerivedData/FirebaseTest-fhowossayshwxpdgqpcmfbvmzwhr/Build/Products/Debug-iphonesimulator/FirebaseCore -F/Users/balzer/Library/Developer/Xcode/DerivedData/FirebaseTest-fhowossayshwxpdgqpcmfbvmzwhr/Build/Products/Debug-iphonesimulator/FirebaseInstanceID -F/Users/balzer/Library/Developer/Xcode/DerivedData/FirebaseTest-fhowossayshwxpdgqpcmfbvmzwhr/Build/Products/Debug-iphonesimulator/FirebaseMessaging -F/Users/balzer/Library/Developer/Xcode/DerivedData/FirebaseTest-fhowossayshwxpdgqpcmfbvmzwhr/Build/Products/Debug-iphonesimulator/GTMSessionFetcher -F/Users/balzer/Library/Developer/Xcode/DerivedData/FirebaseTest-fhowossayshwxpdgqpcmfbvmzwhr/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac -F/Users/balzer/Library/Developer/Xcode/DerivedData/FirebaseTest-fhowossayshwxpdgqpcmfbvmzwhr/Build/Products/Debug-iphonesimulator/GoogleUtilities -F/Users/balzer/Library/Developer/Xcode/DerivedData/FirebaseTest-fhowossayshwxpdgqpcmfbvmzwhr/Build/Products/Debug-iphonesimulator/Protobuf -F/Users/balzer/Library/Developer/Xcode/DerivedData/FirebaseTest-fhowossayshwxpdgqpcmfbvmzwhr/Build/Products/Debug-iphonesimulator/nanopb -F/Users/balzer/www/cordova-plugin-firebase-test/platforms/ios/Pods/Crashlytics/iOS -F/Users/balzer/www/cordova-plugin-firebase-test/platforms/ios/Pods/Fabric/iOS -F/Users/balzer/www/cordova-plugin-firebase-test/platforms/ios/Pods/FirebaseABTesting/Frameworks -F/Users/balzer/www/cordova-plugin-firebase-test/platforms/ios/Pods/FirebaseAnalytics/Frameworks -F/Users/balzer/www/cordova-plugin-firebase-test/platforms/ios/Pods/FirebasePerformance/Frameworks -F/Users/balzer/www/cordova-plugin-firebase-test/platforms/ios/Pods/FirebaseRemoteConfig/Frameworks -F/Users/balzer/www/cordova-plugin-firebase-test/platforms/ios/Pods/GoogleAppMeasurement/Frameworks -filelist /Users/balzer/Library/Developer/Xcode/DerivedData/FirebaseTest-fhowossayshwxpdgqpcmfbvmzwhr/Build/Intermediates.noindex/FirebaseTest.build/Debug-iphonesimulator/FirebaseTest.build/Objects-normal/x86_64/FirebaseTest.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=10.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/balzer/Library/Developer/Xcode/DerivedData/FirebaseTest-fhowossayshwxpdgqpcmfbvmzwhr/Build/Intermediates.noindex/FirebaseTest.build/Debug-iphonesimulator/FirebaseTest.build/Objects-normal/x86_64/FirebaseTest_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -ObjC -lc++ -lsqlite3 -lz -framework CoreTelephony -framework Crashlytics -framework FIRAnalyticsConnector -framework Fabric -framework FirebaseABTesting -framework FirebaseAnalytics -framework FirebaseAuth -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseInstanceID -framework FirebaseMessaging -framework FirebasePerformance -framework FirebaseRemoteConfig -framework Foundation -framework GTMSessionFetcher -framework GoogleAppMeasurement -framework GoogleToolboxForMac -framework GoogleUtilities -framework Protobuf -framework QuartzCore -framework SafariServices -framework Security -framework StoreKit -framework SystemConfiguration -framework UIKit -framework nanopb -weak_framework UserNotifications -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/balzer/Library/Developer/Xcode/DerivedData/FirebaseTest-fhowossayshwxpdgqpcmfbvmzwhr/Build/Intermediates.noindex/FirebaseTest.build/Debug-iphonesimulator/FirebaseTest.build/FirebaseTest.app.xcent /Users/balzer/Library/Developer/Xcode/DerivedData/FirebaseTest-fhowossayshwxpdgqpcmfbvmzwhr/Build/Products/Debug-iphonesimulator/libCordova.a -framework Pods_FirebaseTest -Xlinker -dependency_info -Xlinker /Users/balzer/Library/Developer/Xcode/DerivedData/FirebaseTest-fhowossayshwxpdgqpcmfbvmzwhr/Build/Intermediates.noindex/FirebaseTest.build/Debug-iphonesimulator/FirebaseTest.build/Objects-normal/x86_64/FirebaseTest_dependency_info.dat -o /Users/balzer/Library/Developer/Xcode/DerivedData/FirebaseTest-fhowossayshwxpdgqpcmfbvmzwhr/Build/Products/Debug-iphonesimulator/FirebaseTest.app/FirebaseTest

Undefined symbols for architecture x86_64:
"_sqlite3_prepare_v3", referenced from:
-[APMSqliteStore prepareSQL:error:] in GoogleAppMeasurement(APMSqliteStore_645df61703f07a6639f4b1de4d0cf5c3.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

`

Default Notification Accent Color in Android

@dpa99c , I tried to report this in my original ticket ( #2 ), but you closed it before I got a chance.

When using 00FFFFFF either in a message, or as the value of the plugin variable ANDROID_ICON_ACCENT , I'm expecting transparency so I can see my supplied logo as expected. Is that not the case?

Failed to fetch platform cordova-ios@^5.0.0

Step to reproduce:

git clone https://github.com/dpa99c/cordova-plugin-firebasex-test.git && cd cordova-plugin-firebasex-test
npm install
cordova platform add ios

I get

Using cordova-fetch for cordova-ios@^5.0.0
Failed to fetch platform cordova-ios@^5.0.0
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Could not determine package name from output:
audited 176 packages in 7.404s
found 1 high severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details

Failed to fetch platform cordova-ios@^5.0.0

following is output

=========
cordova-plugin-firebasex-test $ cordova platform add ios
Using cordova-fetch for cordova-ios@^5.0.0
(node:49610) Warning: Accessing non-existent property 'ios' of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)
Failed to fetch platform cordova-ios@^5.0.0
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Could not determine package name from output:
audited 173 packages in 2.203s

7 packages are looking for funding
run npm fund for details

found 1 high severity vulnerability
run npm audit fix to fix them, or npm audit for details

==========

and this issue has reported
apache/cordova-ios#516

FirebasePlugin.getToken returns null

I've tried following the instructions for building this test project for android, and although I get a working build, I have problems:

  • FirebasePlugin.getToken returns null (firebasex readme warns Note that token will be null if it has not been established yet, but I'm not sure what that means)
  • Creating & Sending notifications from firebase console's cloud messaging tab, nothing happens on the app (wether it is in foreground, background or closed)

Issue While setting-up Test project

Hi Dave,

I'm trying to run the test project as you documented but getting following error.

Gradle sync failed: In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[20.0.
0]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.
Dependency failing: com.google.firebase:firebase-messaging:20.0.0 -> com.google.firebase:firebase-iid@[20.0.0], but fire
base-iid version was 20.0.2.
The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art
ifact with the issue.
-- Project 'app' depends onto com.google.android.gms:play-services-tagmanager-api@{strictly 17.0.0}
-- Project 'app' depends onto com.google.firebase:[email protected]
-- Project 'app' depends onto com.google.firebase:[email protected]
-- Project 'app' depends onto com.google.firebase:firebase-config@{strictly 19.0.3}
-- Project 'app' depends onto com.google.firebase:[email protected]
-- Project 'app' depends onto com.google.android.gms:play-s... (show balloon)
Screenshot 2020-02-27 at 11 09 06 PM

I'm not sure about this error. In fact same error we were getting while using the firebase plugin.
Please look into this. Your help is appreciated.

Thanks.
SG

What is controlling the icon color on Android?

I'm noticing that bell.png appears to be getting applied a custom color ( #008487 ) from what I can get from my screenshot.

Screenshot_20190926-131312

How can I remove this? I wanted to use a different icon all together, but it appears this color is being applied over it:

Screenshot_20190926-132729

Build error on Xcode 13.4.1 with IPHONEOS_DEPLOYMENT_TARGET (possible fix)

hello

I'm migrating a project using your plugin and I'm always checking first that your example project is building as you mentionned in several tickets to do so

however cordova run ios fails with

/Users/itk/Desktop/cordova-plugin-firebasex-test/platforms/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.5.99. (in target 'leveldb-library' from project 'Pods')
/Users/itk/Desktop/cordova-plugin-firebasex-test/platforms/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.5.99. (in target 'AppAuth' from project 'Pods')
** BUILD FAILED **

this is because since Xcode 12 (I think) it does not allow to target iOS 8 anymore.

we had the same problem and did the following very dirty fix

sed -i '' 's/IPHONEOS_DEPLOYMENT_TARGET = 8/IPHONEOS_DEPLOYMENT_TARGET = 9/g' platforms/ios/Pods/Pods.xcodeproj/project.pbxproj

the sed is ugly, when future Xcode will drop iOS9 it will break again

it all boils down to "old" Pods but I don't know how to fix it.

do you have a better fix ?

Error 10, Unknown server client ID when authenticate with Google

Cordova android.
Several months ago I try this repo is running well, but some days ago I fresh clone and try again get some error.

Fresh clone from this repository.
Configuring SERVER_CLIENT_ID with OAuth Client ID which auto generated from firebase create android app.
I also already copy google-service.json to my project
I double check that my SHA1 is correct, but I still get error "Unknown server client ID".
Is any change from google terms or any config I missing ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.