How to install Android GCM - java

I can't find a way to install the Android GCM through the SDK Manager. I have managed to install the play services but in the extras folder I can't find the GCM.jar library. The GCM is not listed in the SDK Manager checkboxes although I have made all the possible updates

You don't need GCM.jar. Only PlayServices library is required.
Refer: http://developer.android.com/google/gcm/gs.html

There is only Google Play Services you need to setup. Implementing GCM Client is the complete source code, given by android documentation .

Related

Setting up Firebase with android studio for authentication

I am trying to setup my android project with Firebase so that I can allow users to login and sign up for my app.
I have connected my app to Firebase but when I try and add Firebase Authentication to my app I get the following error:
The library com.google.android.gms:play-services-base is being
requested by various other libraries at [[15.0.1,15.0.1]], but
resolves to 16.0.1. Disable the plugin and check your dependencies
tree using ./gradlew :app:dependencies.
Try updating both all the Play Services and Firebase libraries to the latest version. For more information take a look at https://developers.google.com/android/guides/releases#may_23_2018
Hopefully this helps!

how to fix: Google Play services out of date. Requires 12210000 but found 10298470

i am applying ads on my applications using android studio 3.0
but when i run the application it give this notification in Run Panel
Google Play services out of date. Requires 12210000 but found 10298470
help me fixing this problem
You are requiring services 12.0.0 in your build.gradle file, but the emulator or device has an out of date google play services. If you are using an emulator, you need to use an emulator with Google Play so that you can update the services version. https://stackoverflow.com/a/35498283/3962777

Is EMM what I'm looking for?

We have a Java based web application and an android app for our enterprise needs. We would like to remotely push the android app from the web application and we don't know how to achieve this. After searching in Google, I found Android EMM but did not understand what that is exactly as there were no other blogs or tutorials other than the Google site which was difficult for me to understand.
It is similar to MDM solution but do MDM servers have an app preinstalled in the devices so that the installed app manages the installation of other apps?
Can anybody tell how to remotely push the android app from my web application?
To remotely push an app to an Android device you need to manage this device, you cannot just push an app on anyone's device. To manage a device you need to set up this device as managed, which will require a factory reset.
If you want to pursue this approach you can try the Android Management API.
You can just upload .apk file to your server and provide a link to the user. This is a very simple solution but requires user to agree "install apk from third party sources". In this case, a user needs to agree with installing apk.
If you want to install apk without user agreement you need to activate Device Owner on Android (Fred mentioned in the comment this approach).

How do I update Google Play Services on Android Studio?

I have changed the dependencies and installed the necessary files needed. However, whenever I run my emulator, a message with pop up saying that I have to update my Google Play Services. Any idea on how to solve this problem?
Go to settings from file and update the Google Play services from the SDK manager:

Can't enable managed push as this depends on GCM, which is not available on this device

I have one phone on Android 4.4.4, when I start the sinch client I get:
Can't enable managed push as this depends on GCM, which is not available on this device.
from the mSinchClient.setSupportManagedPush(true);. It works on another Android which is a Android on 6.0.1. Do anyone know how to fix this?
Please update your SDK to the latest version. I had similar issue with older SDK version. It is resolved with newer one.
You can download latest SDK from here
https://www.sinch.com/downloads/
And download "VOICE & INSTANT MESSAGE SDK W/ VIDEO BETA" with version "Android SDK 3.9.7"

Categories