Skip to content

Commit 7064cd1

Browse files
authored
Merge pull request #49779 from conceptdev/crdun-mobileapps-updatepush1
[mobile] codeblock language spec, markdig warning fix
2 parents 92edc54 + a9aeeb9 commit 7064cd1

22 files changed

+1873
-1439
lines changed

articles/app-service-mobile/app-service-mobile-android-get-started-push.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,19 @@ ms.devlang: java
1515
ms.topic: article
1616
ms.date: 11/17/2017
1717
ms.author: crdun
18-
1918
---
2019
# Add push notifications to your Android app
20+
2121
[!INCLUDE [app-service-mobile-selector-get-started-push](../../includes/app-service-mobile-selector-get-started-push.md)]
2222

2323
## Overview
24+
2425
In this tutorial, you add push notifications to the [Android quick start] project so that a push notification is sent to the device every time a record is inserted.
2526

2627
If you do not use the downloaded quick start server project, you need the push notification extension package. For more information, see [Work with the .NET backend server SDK for Azure Mobile Apps](app-service-mobile-dotnet-backend-how-to-use-server-sdk.md).
2728

2829
## Prerequisites
30+
2931
You need the following:
3032

3133
* An IDE, depending on your project's back end:
@@ -36,37 +38,47 @@ You need the following:
3638
* Complete the [Android quick start].
3739

3840
## Create a project that supports Firebase Cloud Messaging
41+
3942
[!INCLUDE [notification-hubs-enable-firebase-cloud-messaging](../../includes/notification-hubs-enable-firebase-cloud-messaging.md)]
4043

4144
## Configure a notification hub
45+
4246
[!INCLUDE [app-service-mobile-configure-notification-hub](../../includes/app-service-mobile-configure-notification-hub.md)]
4347

4448
## Configure Azure to send push notifications
49+
4550
[!INCLUDE [app-service-mobile-android-configure-push](../../includes/app-service-mobile-android-configure-push-for-firebase.md)]
4651

4752
## Enable push notifications for the server project
53+
4854
[!INCLUDE [app-service-mobile-dotnet-backend-configure-push-google](../../includes/app-service-mobile-dotnet-backend-configure-push-google.md)]
4955

5056
## Add push notifications to your app
57+
5158
In this section, you update your client Android app to handle push notifications.
5259

5360
### Verify Android SDK version
61+
5462
[!INCLUDE [app-service-mobile-verify-android-sdk-version](../../includes/app-service-mobile-verify-android-sdk-version.md)]
5563

5664
Your next step is to install Google Play services. Firebase Cloud Messaging has some minimum API level requirements for development and testing, which the **minSdkVersion** property in the manifest must conform to.
5765

5866
If you are testing with an older device, consult [Add Firebase to Your Android Project] to determine how low you can set this value, and set it appropriately.
5967

6068
### Add Firebase Cloud Messaging to the project
69+
6170
[!INCLUDE [Add Firebase Cloud Messaging](../../includes/app-service-mobile-add-firebase-cloud-messaging.md)]
6271

6372
### Add code
73+
6474
[!INCLUDE [app-service-mobile-android-getting-started-with-push](../../includes/app-service-mobile-android-getting-started-with-push.md)]
6575

6676
## Test the app against the published mobile service
77+
6778
You can test the app by directly attaching an Android phone with a USB cable, or by using a virtual device in the emulator.
6879

6980
## Next steps
81+
7082
Now that you completed this tutorial, consider continuing on to one of the following tutorials:
7183

7284
* [Add authentication to your Android app](app-service-mobile-android-get-started-users.md).

0 commit comments

Comments
 (0)