Comments (17)
Solved issue by removing platform ios and adding it again .
Thanx for ur effort and time.
from nativescript-plugin-firebase.
Did you download GoogleService-Info.plist
and add it to app/App_Resources/iOS/
? See https://firebase.google.com/support/guides/firebase-ios
from nativescript-plugin-firebase.
Yes , i have included GoogleService-Info.plist file
On Jun 29, 2016 3:40 PM, "Eddy Verbruggen" [email protected] wrote:
Did you download GoogleService-Info.plist and add it to
app/App_Resources/iOS/? See
https://firebase.google.com/support/guides/firebase-ios—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#63 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AJl9AyWevuIjVp7V0UW7OOfxAspasFvkks5qQkSDgaJpZM4JAkd9
.
from nativescript-plugin-firebase.
Please share your project with me so I can debug it.
from nativescript-plugin-firebase.
I can't access my machine now but will share it after 3 hours
On Jun 29, 2016 3:43 PM, "Eddy Verbruggen" [email protected] wrote:
Please share your project with me so I can debug it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#63 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AJl9A8LvL0Ly798FY8W45xf10wKlEGkcks5qQkVbgaJpZM4JAkd9
.
from nativescript-plugin-firebase.
No hurry, thanks!
from nativescript-plugin-firebase.
I also get
Jul 25 02:59:31 Popeyes-MacBook-Pro KickoffToday[2067]: CONSOLE LOG file:///app/main.js:12:16: firebase.init error: ReferenceError: Can't find variable: FIRApp
I already put GoogleService-info.plist in the correct folder:
I'm using the code from https://docs.nativescript.org/angular/tutorial/ng-chapter-3 but have no luck integrate it with nativescript-plugin-firebase.
Here is the code in main.ts
import {nativeScriptBootstrap} from "nativescript-angular/application";
import {AppComponent} from "./app.component";
import {Config} from "./shared/config";
var firebase = require('nativescript-plugin-firebase');
firebase.init({
url: Config.firebase.databaseURL,
persist: true // Persist data to disk. Default false.
}).then(
function (result) {
console.log("firebase.init done: " + result);
},
function (error) {
console.log("firebase.init error: " + error);
}
);
nativeScriptBootstrap(AppComponent);
Do I missing something?
from nativescript-plugin-firebase.
@chillyprig can you please retry with the latest (3.5.0) version of this plugin?
from nativescript-plugin-firebase.
Hi @EddyVerbruggen I know this has been closed but I'm still getting the same error setting up on my demo app with the latest plugin
Sep 1 12:53:03 ip-172-16-1-25 nsexerciseDaily[46170]: CONSOLE LOG file:///app/tns_modules/nativescript-plugin-firebase/firebase.js:372:18: Error in firebase.init: ReferenceError: Can't find variable: FIRApp
Followed the setup instructions and downloaded the GoogleService-Info.plist file to App_Resources/iOS
versions:
nativescript-plugin-firebase │ ^3.5.4
$ tns --version
2.2.1
from nativescript-plugin-firebase.
@yoojene How are you starting the app, and on which device / simulator?
from nativescript-plugin-firebase.
@yoojene Oh, and does this "hack" work for you as well? #76
from nativescript-plugin-firebase.
Using the iOS emulator ( tns run ios --emulator --watch) which is loading up a 9.3 instance. I just found that hack but no didn't work, I'm not trying anything wrt auth or storage - seems to fail straight away at firebase.init({))
I don't have to declare FIRApp somewhere as a constant do I? Similar to the URL in the web app version?
from nativescript-plugin-firebase.
Do you have this? I mean requiring the plugin before application.start()
.
from nativescript-plugin-firebase.
Yep - this is my app.ts
The page loads but with the error above
import application = require("application");
import firebase = require("nativescript-plugin-firebase");
firebase.init({
// Optionally pass in properties for database, authentication and cloud messaging,
// see their respective docs.
}).then(
(instance) => {
console.log("firebase.init done");
},
(error) => {
console.log("firebase.init error: " + error);
}
);
application.start({ moduleName: "views/login/login" });
from nativescript-plugin-firebase.
Looks legit. Can you try tns emulate ios
(without the watch, or livesync features) and see if that helps? If not remove and readd your iOS platform as well.
from nativescript-plugin-firebase.
Hmm OK that worked fine, then when I've retried the previous command, it worked too! thanks for the help man.
from nativescript-plugin-firebase.
@EddyVerbruggen hi Eddy sadly i have also encountered this issue and it is preventing me from continuing my Firebase integration. I am using tns version 2.2. I have thoroughly checked the code and tried all the fixes and other suggestions here and in the other related issue.
from nativescript-plugin-firebase.
Related Issues (20)
- M1 Issue - FirebaseSDK HOT 4
- Several "session_start" event are created on iOS 15 HOT 1
- ERROR TypeError: firebase.init is not a function.
- AdMob error: TypeError: Cannot set property 'resolve' of undefined
- Class constructor ContentView cannot be invoked without 'new'
- Android App Not working with NS 8.2. HOT 42
- A problem occurred configuring root project 'firebase'.
- microsoft login
- Android 12 background notification led to crash (PendingIntent) HOT 6
- Unable to run new deployment HOT 1
- ion
- Error trying to install @nativescript/firebase
- barcode scanning issue - iPhone 13 Pro and iPhone 13 Pro max
- Cannot read property 'ads' of undefined on NativeScript 8.2.3 HOT 1
- Plugin with id 'com.google.gms.google-services' not found. HOT 13
- SetValue of type Date Error on iOS
- Barcode Scanning issue on native script 8 with native camera control
- Mark this repository as deprecated HOT 1
- Firebase Authentication functions are giving error "No reference found.
- Firebase Messaging crash issue in Android 13 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-plugin-firebase.