Google Cloud endpoints module to Google Cloud module with GCM? - android

I have an app with a regular Google Cloud Endpoints module. Everything works fine. But recently, I found out that I need to have GCM service for the app. Is it possible to convert the Google Cloud Endpoints module to a Google Cloud messaging module? Or should I have both modules and deploy in different cloud projects? Or should I just set up the whole backend again with a GCM module? I am using Android Studio with Gradle btw.

You can add your new API to your existing module; you don't have to do anything special.

Related

No clients were able to be added to your Firebase project

I recently released an Android App on the playstore this app is currently linked with both Google's Admob and Google's firebase for analytics, after a while I started working on an update that includes FIREBASE NOTIFICATIONS when I tried to connect firebase to the project I got this error:
Firebase
No clients were able to be added to your Firebase project for the following reasons:
An app with this package name and SHA1 is already connected to a Google project. If you have used a Google API previously, please select that project in the Connect to an existing project list.
Client Package Name: xxxxxxxxxxxxxxxxxxxxxxxxx
Client SHA1: [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]
How to fix this without loosing my previous analytics stats ?
You Should Use The existing App And Include Feature For Push Notifications at Firebase console or firebase assistant in studio
As you are creating a new project in firebase assistant for push notifications but you have aldready added this app for another services it Wont use two firebase projects for Single application so Make Sure You Are Going With The Past Project which you have done for admob and then go to cloud messaging amd enable it then you will successfully connect
If any errors again i can Help
Thank you
And If You Created Aldready you can import that project into previous project but make sure that you use same firebase account
https://firebase.google.com/support/faq/
Use this link to know about importing projects

Can I use the same Firebase project to get push notification for both android and iOS application?

I have create a firebase console project for testing push notification service and use the json.plist file in an android project. Now I want to test it for iOS application. So can I use the same firebase console project for iOS push notification implementation or need to create different google firebase console project and plist file?
Yes, you can use the same Firebase Project when using FCM to both Android and iOS.

How do I add Firebase Cloud Messaging to Xamarin.Forms app?

Google has replaced GCM (Google Cloud Messaging) with the new FCM (Firebase Cloud Messaging) for push notifications. I am trying to implement push notifications in my Android (Xamarin.Forms) project. It appears that FCM is not yet supported for Forms due to Google Play Services dependency issues (see details below). When I attempt to implement using the old GCM system, the Google Developer Console will not allow me access the GCM API credentials page (just redirects me to FCM). Does anyone have any suggestions to get push notifications working with Android in a Xamarin.Forms solution?
Note: I am using Azure Notification Hub to send the messages (I have iOS already working)
Dependency Issue: The latest Xamarin.Forms package is dependent on Xamarin.Android.Support.v4 (23.3.0). Xamarin.Firebase.Messaging is dependent on Xamarin.GooglePlayServices.Basement (32.961.0). Xamarin.GooglePlayServices.Basement (32.961.0) is dependent on Xamarin.Android.Support.v4 (>=24.2.1).
My android solution is on:
https://forums.xamarin.com/discussion/70248/firebase-configuration
Just search for my name as UmutBebek. I'm using pushSharp to send push-notifications from my own server. There is a simple example for that too.
Almost a year later and this should not be an issue anymore.
I have a Xamarin Forms (2.4.0) app pegging Xamarin.Android.Support v4 at version 25.1.0 and I just installed Xamarin.Firebase.Messaging (42.1021.1) happily alongside it via nuget.

I can not connect Google Cloud Messaging to Android client

I'm trying to create a simple example to work with Google Cloud Messaging to Android. I have a php server that is to send a notification android client. I can not understand how the petroleum products in android. I found examples but can not start them. I tried gradle project creation. wrote dependence:
compile 'com.google.android.gms:play-services:6.1.71'
and he found it. but the classes are not available from the library anyway.
<receiver android:name="com.google.android.gcm.GCMBroadcastReceiver"
Android Studio not find and:
GCMBaseIntentService and GCMConfig not find too
I created a project ant. android sdk Extras->Google Play Services and took away the library:
AndroidSDK\extras\google\google_play_services\libproject\google-play-services_lib\libsgoogle-play-services.jar
and connect it. but the same error.
What am I doing wrong? tell me how to set up and connect to the android client Google Cloud Messaging?

App engine cloud endpoints backend and android in the same maven project

Can I create app engine cloud endpoints backend project for my android application, so that I can manage the server and client library code in the same maven project?
Currently I have an android project in android studio, but I want to add a cloud endpoints backend to it. Dont want to manage 2 separate projects in git for these.
You can add the cloud backend using Android Studio itself. It is quiet straightforward!You need to add App Engine first to your package and then generate end points. I have tried it and it works perfectly fine.

Categories

Resources