Xamarin Android SDK
How to integrate Pushwoosh SDK into your Xamarin Android project
Last updated
How to integrate Pushwoosh SDK into your Xamarin Android project
Last updated
1. Go to https://console.firebase.google.com/ and create a new project
2. Go to Your Project > Project settings:
3. In Cloud Messaging tab find Server Key and Sender ID:
4. Configure Android platform with your Firebase credentials following the guide.
1. Add the Nuget package "Pushwoosh.Firebase.Xamarin.Droid" to your project. 2. Add the following metadata to AndroidManifest.xml:
Where:
com.pushwoosh.appid
is your Pushwoosh Application Code
com.pushwoosh.senderid
is the Sender ID you got from the Firebase Console (See Step 5 of Android Platform Configuration guide).
Please note that you need to add fcm_sender_id to res/values/strings.xml of your project (create this file if necessary):
3.1. Add google-services.json
file to your project.
You should've gotten the google-services.json
file while creating the app in Firebase console. If you haven't, please consult this thread (section Get a config file for your Android app).
3.2. In Visual Studio, right-click the google-services.json
and choose GoogleServicesJson option from the Build Action menu.
4. Register for push notifications:
That's it!
Your feedback helps us create a better experience, so we would love to hear from you if you have any issues during the SDK integration process. If you face any difficulties, please do not hesitate to share your thoughts with us via this form.