Comments (32)
The library is available now:
Group: com.google.gcm
Artifact: gcm-server
Version: 1.0.0
from gcm.
@ayjindal in the meantime you could use the one with the io.apigee.gcm package on maven central if you needed it...
<dependency>
<groupId>io.apigee.gcm</groupId>
<artifactId>gcm-server</artifactId>
<version>1.0.0</version>
</dependency>
from gcm.
+1
from gcm.
+1
from gcm.
Finally found a thread about releasing a maven version of gcm-server. I'm currently using this artifact http://search.maven.org/#artifactdetails%7Ccom.ganyo%7Cgcm-server%7C1.0.2%7Cjar
It would be more than awesome if this would be released. I'm actually quite intrigued as to why it hasn't been an official Maven release of this library at all. I know you can just call the API yourself or use the jar file, but come on... this is Maven we're talking about. Nothing beats that simplicity.
from gcm.
+1
Strange that is has not been done yet.
from gcm.
+1
from gcm.
+1
from gcm.
+1
from gcm.
+1
from gcm.
+1
from gcm.
It took some time, but we're working on it. Thanks for the patience :)
from gcm.
+1
from gcm.
+1
from gcm.
👍
from gcm.
+1. Any ETA on when it will be available on Maven?
from gcm.
Just added Maven to my fork of this library: https://github.com/maksimu/gcm
Feel free to check it out.
To add manually Maven dependency to your project you can do the following steps:
- Build .jar file:
mvn clean bulild
- Execute in the root directory of the project:
mvn deploy:deploy-file -Durl=file:///[FOLDER WITH YOUR OTHER MANVEN PROJECT]/repo -Dfile=target/rest-client-1.0-SNAPSHOT.jar -DgroupId=com.google.gcm -DartifactId=rest-client -Dpackaging=jar -Dversion=1.0-SNAPSHOT
- Then in your existing maven project' pom.xml file add the following:
<dependencies>
<!-- Other dependencies -->
<dependency>
<groupId>com.google.gcm</groupId>
<artifactId>rest-client</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
<repositories>
<!-- Other Repositories -->
<repository>
<id>project.local</id>
<name>project</name>
<url>file:${project.basedir}/repo</url>
</repository>
</repositories>
from gcm.
👍
from gcm.
We've just forked this and packaged it for maven, releasing it to maven central:
http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22io.apigee.gcm%22
https://github.com/apigee/gcm
1.0.0 points to the current of master branch.
We kept the existing file structure the same and just added a pom.xml: client-libraries/java/rest-client/pom.xml
. We kept it this way so we can easily incorporate changes from this source repo until it's published by Google into maven central officially.
from gcm.
Is it going to be available officially anytime soon?
from gcm.
Hi @ayjindal I'm actively working on officially getting this out. It should be out very soon.
from gcm.
@jwest-apigee Thanks! I'll surely give it a shot to get started.
@kroikie Looking forward to its coming. Thanks.
from gcm.
Is this an official google project? If so, why is it not published in Maven?
from gcm.
Shouldn't the last version be 1.0.3 or 1.0.2?
from gcm.
Hi All,
I am beginner to maven and finding it difficult to migrate my project from gradle to Maven.
For Push notification code, that I have using from below link in gradle environment is working fine:
$ git clone https://github.com/googlesamples/google-services.git
But when i am trying to use it in my Maven and adding the following dependency to my pom.xml file:
com.google.gcm
gcm-server
1.0.0
And when I am trying to define receiver in my manifest file, I am getting the error.Not able to import any of the Cloud Messaging API in my code.
Please help me to resolve the error.
Thanks for the help.
I am using the sample given at below link:
Able to run in gradle environment successfully but now due to some client requirement I need to migrate my project to Maven.
from gcm.
@avboy72 It is available via maven now. Sorry for the delay.
@alessandro We could have gone with 1.0.3 but decided to go with v1.0.0
since this is the first release to maven.
@RishabhJain1603 not sure where the issue related to the client library,
create a new issue if you believe it is so. If it is a maven issue then a
question on SO may be better place.
On Wed, Jan 20, 2016 at 3:52 PM RishabhJain1603 [email protected]
wrote:
Hi All,
I am beginner to maven and finding it difficult to migrate my project from
gradle to Maven.
For Push notification code, that I have using from below link in gradle
environment is working fine:
$ git clone https://github.com/googlesamples/google-services.gitBut when i am trying to use it in my Maven and adding the following
dependency to my pom.xml file:com.google.gcm
gcm-server
1.0.0But when I am trying to define receiver in my manifest file, I am getting
the error.
android:name="com.google.android.gms.gcm.GcmReceiver"
android:exported="true"
android:permission="com.google.android.c2dm.permission.SEND" >Not able to import any of the Cloud Messaging API in my code.
Please help me to resolve the error.
Thanks for the help.I am using the sample given at below link:
Able to run in gradle environment successfully but now due to some client
requirement I need to migrate my project to Maven.—
Reply to this email directly or view it on GitHub
#23 (comment).
from gcm.
@kroikie I see, but that's quite strange: who is gonna use an old release just to use the google artifact?
Please release at least 1.0.2 :-)
from gcm.
@Polve, if I understand the situation correctly, the version number has simply been "renamed" to 1.0.0 and is based on the latest code as of 2016-01-16. We needn't worry that an ancient version of the library was dug up and released to Maven Central.
from gcm.
@pushbit Thanks for the info, let's hope it's how you say.
Anyway I find this very strange and confusing: what was the problem in calling the release 1.0.4 instead?
from gcm.
The version numbers above 1.0.0 come from when the project was on google code and binaries were distributed as downloads in a dist folder inside the project.
Given that we've moved to maven and it's the first package that we published to maven, and that the old packages are basically not available anymore, it seemed a cleaner solution to restart versioning from 1.0.0.
from gcm.
Using the above Dependency in my pom.xml file, I am not able to import any of Google Cloud Messaging API. It is giving error while writing below lines:
``GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();
I am not able to import any of the Google Cloud Messaging API's in my code.
Thanks for the help.
from gcm.
Thanks @silvolu and @kroikie. Any chances now that gcm was replaced by fcm that we will have the same availed on maven central also.
from gcm.
Related Issues (20)
- Issue Regarding Notification Display. HOT 1
- com.google.android.gcm.server.Sender fix ip address for gcm push notification sender
- Not receiving notification on some Custom OS after reboot
- am not able to get notification in bar when app is opened
- Message.Builder().contentAvailable(true)
- GCM and Play Services GCM
- GCM Dry run gives mismatch http post response
- I am getting below error message, while connecting the gcm through proxy org.apache.http.client.ClientProtocolException
- java.lang.NullPointerException in com.google.android.gms.gcm.GcmListenerService.zzm
- GCM Not receiving push notification in Canada
- Delete
- GCM send calls are failing -Android https://android.googleapis.com/gcm/send (push notification) HOT 1
- Don't have new release with FCM update HOT 3
- UTF-8 support is not present on Server side FCM/GCM push HOT 1
- I forgot my email id from which, i have created GCM Sender id .any way to find email id
- Delay on GCM Push Notifications sent from salesforce server.
- How to know if the requests to GCM have stopped?
- It looks like the data is there, it is just parcelled. If you try to get a particular key/value it should show up. You can always do something like intent.getStringExtra("date") before logging the Intent to force its data to unparcel.
- Not allowed to bind to service Intent HOT 2
- Security Policy violation Binary Artifacts HOT 84
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 gcm.