Comments (9)
You should test in a real device.
from firebasepushnotificationplugin.
If getting java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process {your_package_name}. Make sure the google-services.json has the GoogleServicesJson build action. If you have that set, then clean and build again, this is a known issue when using Firebase Component. More info and fix here: https://bugzilla.xamarin.com/show_bug.cgi?id=56108.
Add the following to the android project .csproj file:
<Target Name="RemoveGoogleServicesJsonStampFiles" BeforeTargets="BeforeBuild">
<Delete Files="$(IntermediateOutputPath)\ProcessGoogleServicesJson.stamp" />
</Target>
from firebasepushnotificationplugin.
I still get the error on a real device.
I will try the Strings.xml fix from the bugzilla page later.
from firebasepushnotificationplugin.
Is not on Strings.xml the fix. Is on the Android .csproj
from firebasepushnotificationplugin.
yes I did add the target in the .csproj of the Android project.
But I still get the error.
Is there an other way to include the google-services.json file?
from firebasepushnotificationplugin.
On this video is shown how to add it:
https://youtu.be/FrxPEMLfV-o
from firebasepushnotificationplugin.
I do every single step of the video in Visual Studio on Windows but still get the error.
Firebase is not able to initialize properly.
from firebasepushnotificationplugin.
I was able to get it to work.
I did the whole procedure on a MacBook in Visual Studio for Mac and now it works.
Any clue why it won't work on windows for me?
from firebasepushnotificationplugin.
Not sure but this seems more enviroment than plugin related. Did you try resetting your PC?
from firebasepushnotificationplugin.
Related Issues (20)
- token not generated for android on vs 22 17.51 on macos
- Plugin.FirebasePushNotifications crashing on Xamarin.IOS project and phisical iPhone HOT 2
- Crash In IOS Initial HOT 2
- Implement request for notifications permissions in Android 13
- OnTokenRefresh method only fires every second debug session, but token has renewed on Firebase HOT 1
- CrossFirebasePushNotification.Current.OnTokenRefresh not always firing at app startup HOT 1
- Default FirebaseApp is not initialized in this context... HOT 3
- NuGet Release
- Problems after Update 3.4.25 or 3.4.35 with Android.Support.V4.Media.Session.MediaSessionCompat
- iOS Token is not generating giving error
- Cannot Gracefully Override DefaultPushNotificationHandler
- Sendo push to device android 13 HOT 4
- MAUI Support HOT 9
- no valid “aps-environment” entitlement string found for application HOT 1
- Token Issues HOT 1
- Permission Request HOT 1
- Delivery rate is not 50% HOT 1
- Edited push notification is not working when app is in background HOT 1
- Any plan of Required Reason API Privacy manifest?
- Could not receive the push notification on OnMessageReceived while swipe away app
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 firebasepushnotificationplugin.