This project is no longer actively developed or maintained.
For new work on this check out MobileShoppingAssistant
Mobile Shopping Assistant Java Backend
Copyright 2013 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
This sample application is not an official Google product.
Supported Platform and Versions
This sample source code and project is designed to work with Eclipse. It was tested with Eclipse 3.8 and Google App Engine SDK 188.8.131.52.
Mobile Shopping Assistant Java Backend demonstrates how to build a mobile backend that will power Android and iOS native applications and expose API using Google Cloud Endpoints.
Eclipse with Google Plugin for Eclipse version 3.2.3 or newer.
Google App Engine SDK version 184.108.40.206 or higher.
Developer Guide using Eclipse
The repository does not include jars. Therefore when you open the project in Eclipse you will initially see errors. After following the steps below, all errors should be gone.
Follow Android documentation to install the helper libraries and to copy the gcm-server.jar into war/WEB-INF/lib directory.
If you see errors about App Engine not being configured correctly, go to Project Properties->Google->App Engine and unselect 'Use Google App Engine' and click OK. Then go to the same dialog again, select 'Use Google App Engine' and make sure that the selected version of SDK is 220.127.116.11 or newer.
Open war/WEB-INF/appengine-web.xml and enter your app id within application XML element.
Open MobileAssistant-AppEngine/src/com.google.sample.mobileassistant/ApiKeysAndIds.java and enter your GCM_API_KEY, ANDROID_CLIENT_ID, IOS_CLIENT_ID, WEB_CLIENT_ID and AUDIENCE. Follow Android documentation to obtain GCM_API_KEY (Note: In the 'Enabling the GCM Service' step choose 'Google Cloud Messaging for Android') and follow the Cloud Endpoints documentation to obtain the 3 Client IDs. For Android Client ID the package name is 'com.google.sample.mobileassistant'. For iOS Client ID the bundle is 'com.google.sample.mobileassistant'.
Select MobileAssistant-AppEngine project in "Project Explorer" and from Google context menu select Generate Cloud Endpoint client library.
Select MobileAssistant-AppEngine project and from Google context menu select Deploy to App Engine.
Follow steps in README.md in MobileAssistant-Data directory to import sample data to the deployed backend.
Now you are ready to use Mobile Shopping Assistant Android client or iOS Client with the mobile backend that you deployed. Follow the steps in README.md for Android and iOS client.