I wanted to use GCM Push Notifications in my Android App which I am developing in Eclipse.
I have updated my SDK Tools as you can see in the uploaded picture.
I still cant find any jars in extras/google/
How can I download the required jars and add them to my project?
My Android SDK Manager:
if you want to use the gcm library try import the existing project from the directory directly from
Android_SDK_Location\extras\google\google_play_services\libproject\google-play-services_lib
Use it as a library project.
Just remind you that now google provided the Firebase for the push notification which needs to use firebase sdk.
FYR: https://developers.google.com/cloud-messaging/
and i think the question may be duplicated?
Related
I want to display an Android notification with a large image whenever I send a notification from FCM (I have included the data payload with a URL for the image). The Android app can be in background or foreground.
I did not know earlier that this is not directly possible with the Unity SDK for FCM. So now I have a Unity project which I'll need to export the project to Android Studio and do something, according to this thread: https://github.com/firebase/quickstart-unity/issues/146#issuecomment-389579086
What I've figured is (maybe I'm wrong) I'll need to remove the FCM SDK from Unity and add the Android SDK in Android Studio and follow the steps for Android. So I deleted all the FCM specific files from my project, reimported other SDKs (Firebase Database, Firebase Auth, Firebase Analytics, Firebase Remote Config, Facebook SDK and GoogleMobileAds SDK) to ensure I didnt break any of these SDKs in the process.
Before exporting to Android Studio, I tried building directly from Unity to make sure I'm making stable builds, but the app crashes as soon as I open it. This is probably happening because the Messaging SDK has irreversibly changed the entry point to a MessagingUnityPlayerActivity, and I have already deleted it.
How do I safely remove the Messaging SDK? Or is there any other solution to my problem?
Currently the instruction given in firebase documentation is for android studio and not eclipse. Are there any instructions available on how to add the firebase to eclipse?
As you already know the answer then why your are asking the question?.
Google has already told that they will not provide support for Eclipse.
Please see this link.You have to use Android Studio for the implementation of Fire base
i simply need an OAuth 2.0 token to authorize requests with Google for REST APIs. so I need to import the google play service sdk.
specifically the:
Google Account Login com.google.android.gms:play-services-identity:8.1.0
I am using eclipse I only want to import the Google account login api, but there is no instructions on how to do so.
if there is no solution, how can I grab the Jar referenced in the dependencies for android studio projects https://developers.google.com/android/guides/setup
There is a solution I guess. Try this:
Go to "android_sdk\extras\google\m2repository\com\google\android\gms\play-services-identity\8.1.0\"
Copy "play-services-identity-8.1.0.aar" to your eclipse project's /libs directory.
Open "project.properties" file and add this line: android.libraries.reference.1=libs/play-services-identity-8.1.0/ and Run Application.
And if it didn't work, try setting up your project with com.google.android.gms:play-services-identity:8.1.0 in android studio and import/export gradle project in/for eclipse. It will most probably resolves the included dependencies automatically to work with eclipse.
Hope it helps.
I want to integrate GCM into my android app. For the beginning I wanted to test the GCM demo that comes with the Google tutorial on how to use GCM http://developer.android.com/google/gcm/client.html
I downloaded the demo project an imported it into my ADT eclipse. So this is what I did:
I downloaded the "Google Play services" via SDK Manager and additionally "Google Repository"
I copied the "/extras/google/google_play_services/libproject/google-play-services_lib/" into my workspace (as recommended by the tutorial)
On the following screenshot you can see that I added the copy of "google-play-services_lib" as a Library to the GCM demo project
However, the dependencies are not resolved as the following screenshot shows:
So at what point in the instructions chain did I make an error?
Google Play Services doesn't contain GCMRegistrar class. That class is part of the deprecated GCM Client library. Instead of using GCMRegistrar, use com.google.android.gms.gcm.GoogleCloudMessaging class to register to GCM.
You are using an old version of the GCM Demo. Try the current version here.
Please follow GCM sample code from here
I am trying to add Google Cloud Messaging in my android app using PhoneGap. I was following this plugin https://github.com/marknutter/GCM-Cordova
Unfortunately, the steps are not very clear. When i try to follow step: "Add the GCMIntentService.java file to your application's main package." i ended up with many errors, there are other file references in this file too.
Is there any tutorial or other plugin available?
Thank you
If you want push notifications I recommend you to use PushWoosh because I've been using it and goes really well.
As you don't show the exact errors of inserting GCMIntentService.java I only can guess that maybe you're not putting the source in the correct package or your Cordova version is not the needed for that plugin. Check your version and if it isn't this try to click in Eclipse the Fix Tool or Clean the project.
Hope this helps!