nativescript-plugin-firebase | : fire : NativeScript plugin for Firebase | Authentication library
kandi X-RAY | nativescript-plugin-firebase Summary
kandi X-RAY | nativescript-plugin-firebase Summary
:fire: NativeScript plugin for Firebase
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of nativescript-plugin-firebase
nativescript-plugin-firebase Key Features
nativescript-plugin-firebase Examples and Code Snippets
Community Discussions
Trending Discussions on nativescript-plugin-firebase
QUESTION
I have an issue with the firebase initialisation on my nativescript app (nativescript-vue).
I am using the nativescript-firebase plugin from https://github.com/EddyVerbruggen/nativescript-plugin-firebase
Here is my initialisation:
ANSWER
Answered 2022-Jan-31 at 13:52I got it to work, the two issues were indeed linked. I had to run npm run config
for the plugin to work correctly.
It turns out I was using an old version of npm. Updating npm and running npm run config
again fixed my issue
QUESTION
I implemented the nativescript-firebase (https://github.com/EddyVerbruggen/nativescript-plugin-firebase) plugin in my mobile app. It used to work fine but since I updated to the 11.1.3 version I cannot get the push token. I tried to get back to the 10.6.3 version but it says it is not available anymore when I execute npm install.
Here is what I do in my main.js
ANSWER
Answered 2022-Jan-27 at 22:03The message points you to the plugin's include.gradle file, or more specifically,
QUESTION
I've been having trouble with this issue for quite a while and I have run out of things to try. I think I've tried every similar solution to this problem to no avail. I would like to see if I can get some more suggestions to move past my issue.
I'm building a NS8/Angular 11 project with Firebase included. I followed the steps found in https://github.com/EddyVerbruggen/nativescript-plugin-firebase to set up cloud messaging, remote config, and in app messaging, which so far is working on Android.
After building and running successfully using tns build/run android
, I then open up my project in Android Studio to rebuild and sign. Upon rebuilding, the following errors occur.
Here is my current app.gradle (App_Resources/Android/src/main/app.gradle).
...ANSWER
Answered 2021-Aug-31 at 00:09What worked for me was actually by passing Android Studio, building the app bundle via command line, and uploading that bundle direction.
minSDKVersion
was set to 21, without needing multiDexEnabled
or implementation...
.
QUESTION
My NS 6.5 Core app works fine on iOS and also builds without issues for Android, but when I try to install it on a device (emulator or physical), I get the following error:
...ANSWER
Answered 2021-Jan-27 at 14:48After some testing it turned out that nativescript-sentry was the culprit. The plugin works great on iOS, not sure what the issue is on Android. I will be following up with the plugin author for more information.
QUESTION
Just upgrade Nativescript to version 7 and getting the errors below, not sure why nativescript is throwing this error.
This is my package.json:
...ANSWER
Answered 2021-Jan-10 at 18:07Make sure your tsconfig.json
contains
QUESTION
I have a NS 6.5 app which when I try to build fails with the following error: could not build module 'nanopb'
Here is my package.json:
...ANSWER
Answered 2020-Oct-18 at 15:38After opening the app in XCode, I tried building it from there. This build succeeded, so I figured that the issue is with NS. I fixed it by trial and error. I kept playing around with the NS global version and finally, everything worked when I downgraded to version 6.2.0.
Note: Do not forget to clean your app before each test. I use:
QUESTION
In NativeScript-Vue/Firebase, I have a method with a promise that is supposed to get an array of document uids from the current user's associated Firestore document. The uids correspond to documents associated with other users (the users that the current user is following" aka their "circle").
The Firestore data looks like this:
Using vue-devtools, it shows in the data for the page that circleList gets populated by the correct array of data. The problem is, it never renders in the Listview, and isLoading never changes to false. My assumption is that the component is trying to render before the data is loaded. I've tried to solve this with async/await for that method, but it makes the userProfile info from Vuex never render either.
The code looks like this:
...ANSWER
Answered 2020-Sep-03 at 08:06Since userProfile is also async, you will have to wait for it to resolve before you can do the first map in getCircle.
The way I like to do this is by creating an action for userProfile that returns a promise. The action would first check if there is a userProfile in the state. If there is, it will just return userProfile, if not, it will fetch it and then return it:
QUESTION
I'm not sure I'm 100% on await and promise chaining, but I cannot for the life of me understand why any time I try to pass data to a httpsCallable function I get a "Maximum call stack size exceeded" error without the function ever being called.
I'm just trying to pass the user object returned from signInWithEmailAndPassword to my httpsCallable but cannot figure out how to without said error. Any pointers appreciated <3
...ANSWER
Answered 2020-Aug-14 at 02:12The error typically means you're trying to serialize an object with internal circular references. The first thing you should try is any object other than user
. Then, try composing an object based on what you pull out of user
. Just don't pass user
itself, since it might not be safe to serialize in the default manner.
QUESTION
so I did upgrade my nativescript+angular app following the NS update instructions as I've been doing. However this time, after building the app, when I try to open it the below error is thrown
...ANSWER
Answered 2020-Jun-29 at 12:54Well, somehow running with the flag --env.aot fixed the problem. Might help someone :)
QUESTION
my nativescript app was working fine until i added firebase plugin. Now, when i run it on my device, it gives the error message 'app has stopped working' . Please help
this is the plugin i'm using https://github.com/EddyVerbruggen/nativescript-plugin-firebase
...ANSWER
Answered 2020-Feb-02 at 20:25The google-services.json should be in app/App_Resources/Android Are you using tns run or suchlike? If so what is the whole error from the terminal? App stopped working doesn't sound like a complete output.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nativescript-plugin-firebase
Create two separate Firebase projects (e.g. myproject and myproject-dev) and configure them with the same package name.
Create two separate Firebase projects (e.g. myproject and myproject-dev) and configure them with the same package name
Download the plist and json files for both projects and put them in the relevant directories with either .dev or .prod appended to the file names, so you have the following files in place: iOS app/App_Resources/iOS/GoogleService-Info.plist.dev app/App_Resources/iOS/GoogleService-Info.plist.prod Android app/App_Resources/Android/google-services.json.dev app/App_Resources/Android/google-services.json.prod
The build hooks of this plugin will now choose either the dev or the prod version of your google services plist and json files depending on how you run your build:. Note: Using the --release flag without any of the above flags will set the default environment to production. If you need to create a release with dev environment you'll need to set it explicitly. Note: if you do not have both dev and prod files in place, the regular GoogleService-Info.plist and google-services.json files will be used.
dev will be selected if you run with either --env.dev, --env.development or --env.staging flags.
prod will be selected if you run with either --env.prod or --env.production.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page