Comments (4)
hey i am also facing the same problem. If you have figured out the steps can you please post them here?
from iosched.
You should be able to use gradle to interact with GAE:
cd gcm-server
[change build.gradle to point to your app id/email]
./gradlew.sh gaeUpdate
from iosched.
well i have used gradle..did gradle gaeUpdate ..the device is registered correctly but i get a problem in sending a notification..
There are a few doubts i have -
- what has to be done with web-inf/classes/api.key.example file..do i have to write the my API key for Android there also?
- there is a checkuser() method in Baseservlet which has some authentication code for google.com..do i have to make some changes there or leave it as it is?
- when i go to my-app.appspot.com/admin and send a message from there..it says scheduleupdate.java not found..There is actually no file called scheduleupdate..so what should i do with it?
from iosched.
@mshukla19 take a look how it was solved in our case βΒ gdgomsk@5b970ce.
For sending messages from server to mobile app you can use httpie tool (http://httpie.org/)
Several useful examples:
- $ http POST https://your-app-gcm.appspot.com/send/global/test Authorization:key=top-secret message="Hello World!" -j -v
- $ http POST https://your-app-gcm.appspot.com/send/global/sync_schedule Authorization:key=top-secret sync_jitter=0 -j -v
- $ echo
'{
"format": "1.0.00",
"audience": "all",
"expiry": "2016-07-14T19:40:00Z",
"title": "Title Goes Here",
"message": "Message goes here testing 1234 foo bar qux",
"minVersion": "1",
"maxVersion": "201",
"url": "http://www.google.com"
}' |
http POST https://your-app-gcm.appspot.com/send/global/notification Authorization:key=top-secret -j -v - $ echo
'{
"format": "1.0.00",
"audience": "all",
"expiry": "2016-07-14T19:40:00Z",
"title": "Title Goes Here",
"message": "Message goes here testing 1234 foo bar qux",
"minVersion": "1",
"maxVersion": "201",
"url": "http://www.google.com",
"dialogTitle": "Dialog Title",
"dialogText": "Hello! This is a test dialog. Lorem ipsum dolor sit amet.",
"dialogYes" : "Definitely!",
"dialogNo" : "NO way!"
}' |
http POST https://your-app-gcm.appspot.com/send/global/notification Authorization:key=top-secret -j -v
Information about types of messages and its inner structure you can find here:
- https://github.com/google/iosched/blob/master/doc/GCM.md
- http://android-developers.blogspot.com/2014/09/conference-data-sync-gcm-google-io.html
from iosched.
Related Issues (20)
- Project cannot be build due to JCenter / Bintray dependencies
- hi
- Code autocompletion does not work HOT 1
- Execution failed for task ':shared:kaptStagingKotlin'. HOT 2
- dependency introduction problem
- Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: HOT 4
- no com.google.dagger:hilt-android dependency was found HOT 1
- My Browsing...Way
- Gradle sync error when cloning and open the project on Android Studio
- java.lang.IllegalStateException: No instantiated fragment
- Android Studio Project Build Error
- Anti Pattern in Connectivity View
- After the first installation, exit app, and then start app, it will flash, will never be normal, unless I uninstall and reinstall, please tell me what to do?
- iosched app can't login in google and have error
- What's your problem
- That istanbul in der telekom, deiner phantasie madness IP der nΓ€he der lichtbringerin
- The first time
- C
- Kxkk
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 iosched.