Sample demonstrating how to build a messaging app with the following features: contacts list, chat list, send messages, message style notification, and sign-in with Google.
This project demonstrates Google Sign-in. You will need to follow the setup instructions for integrating Google Sign-in into an Android app at the link below. Remember to use the package name com.example.android.wearable.wear.messaging when configuring your project and credentials, or otherwise modify the sample appropriately if you want to use a different package name.
https://developers.google.com/identity/sign-in/android/start-integrating
After you finish setting up the google-services.json file for Google Sign-in, update the strings.xml file for the string value default_web_client_id to the value for the OAuth web client id created.
The project demonstrates the following features:
Each feature is contained in it's own package:
To see other examples of Google Sign-in, check out the Android Wear Google Sign-In Sample.
To see other examples of notifications, check out the Android WearNotifications Sample
This sample uses the Gradle build system. To build this project, use the “gradlew build” command or use “Import Project” in Android Studio.
If you've found an error in this sample, please file an issue: https://github.com/googlesamples/android-WearMessagingApp
Patches are encouraged, and may be submitted by forking this project and submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.
Copyright 2017 The Android Open Source Project, Inc.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you 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
http://www.apache.org/licenses/LICENSE-2.0
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.