forked from joostdenijs/azure-content
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
203 changed files
with
10,612 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+75.3 KB
...es/media/mobile-engagement-android-get-started/android-studio-activity-name.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+138 KB
...les/media/mobile-engagement-android-get-started/android-studio-add-activity.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+147 KB
...cles/media/mobile-engagement-android-get-started/android-studio-new-project.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+87.7 KB
...es/media/mobile-engagement-android-get-started/android-studio-project-props.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+132 KB
...s/media/mobile-engagement-android-get-started/android-studio-project-props2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+282 KB
articles/media/mobile-engagement-android-get-started/campaign-first-params.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+36.1 KB
articles/media/mobile-engagement-android-get-started/copy-resources.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+369 KB
articles/media/mobile-engagement-android-get-started/monitor-trafic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+110 KB
articles/media/mobile-engagement-android-get-started/native-push-settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+201 KB
articles/media/mobile-engagement-android-get-started/paste-resources.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+113 KB
articles/media/mobile-engagement-android-get-started/resolve-classes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+271 KB
articles/media/mobile-engagement-android-get-started/subclass-activity.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+87.2 KB
articles/media/mobile-engagement-android-get-started/sync-project.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+108 KB
articles/media/mobile-engagement-common/app-main-page-select-connection-info.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Binary file added
BIN
+29.1 KB
articles/media/mobile-engagement-common/create-mobile-engagement-app.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+81.1 KB
articles/media/mobile-engagement-define-your-engagement-strategy/use-case1.png
Oops, something went wrong.
Binary file added
BIN
+198 KB
articles/media/mobile-engagement-define-your-engagement-strategy/use-case2.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+411 KB
articles/media/mobile-engagement-ios-get-started/campaign-first-params.png
Oops, something went wrong.
Binary file added
BIN
+83.8 KB
articles/media/mobile-engagement-ios-get-started/create-azme-popup.png
Oops, something went wrong.
Binary file added
BIN
+50.6 KB
articles/media/mobile-engagement-ios-get-started/mobile-engagement-ios-portal.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+289 KB
articles/media/mobile-engagement-ios-get-started/native-push-settings.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+155 KB
articles/media/mobile-engagement-ios-get-started/xcode-build-phases.png
Oops, something went wrong.
Binary file added
BIN
+164 KB
articles/media/mobile-engagement-ios-get-started/xcode-new-project.png
Oops, something went wrong.
Binary file added
BIN
+93.3 KB
articles/media/mobile-engagement-ios-get-started/xcode-project-props.png
Oops, something went wrong.
Binary file added
BIN
+209 KB
articles/media/mobile-engagement-ios-get-started/xcode-select-engagement-sdk.png
Oops, something went wrong.
Binary file added
BIN
+119 KB
articles/media/mobile-engagement-ios-get-started/xcode-simple-view.png
Oops, something went wrong.
Binary file added
BIN
+91.6 KB
articles/media/mobile-engagement-ios-get-started/xcode-view-controller.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+160 KB
...les/media/mobile-engagement-windows-phone-get-started/add-connection-string.png
Oops, something went wrong.
Binary file added
BIN
+323 KB
...les/media/mobile-engagement-windows-phone-get-started/campaign-first-params.png
Oops, something went wrong.
Binary file added
BIN
+72.8 KB
...gagement-windows-phone-get-started/manage-nuget-settings-new-source-add-lib.png
Oops, something went wrong.
Binary file added
BIN
+65 KB
...engagement-windows-phone-get-started/manage-nuget-settings-new-source-added.png
Oops, something went wrong.
Binary file added
BIN
+40 KB
...obile-engagement-windows-phone-get-started/manage-nuget-settings-new-source.png
Oops, something went wrong.
Binary file added
BIN
+23.8 KB
...les/media/mobile-engagement-windows-phone-get-started/manage-nuget-settings.PNG
Oops, something went wrong.
Binary file added
BIN
+127 KB
articles/media/mobile-engagement-windows-phone-get-started/monitor.png
Oops, something went wrong.
Binary file added
BIN
+86.2 KB
articles/media/mobile-engagement-windows-phone-get-started/new-project.png
Oops, something went wrong.
Binary file added
BIN
+95.9 KB
articles/media/mobile-engagement-windows-phone-get-started/project-properties.png
Oops, something went wrong.
Binary file added
BIN
+98.6 KB
articles/media/mobile-engagement-windows-phone-get-started/push-screenshot.png
Oops, something went wrong.
Binary file added
BIN
+141 KB
articles/media/mobile-engagement-windows-phone-get-started/reach-capabilities.png
Oops, something went wrong.
Binary file added
BIN
+81 KB
articles/media/mobile-engagement-windows-phone-get-started/select-app.png
Oops, something went wrong.
Binary file added
BIN
+118 KB
articles/media/mobile-engagement-windows-phone-get-started/subclassing.png
Oops, something went wrong.
Binary file added
BIN
+35.3 KB
...edia/mobile-engagement-windows-phone-get-started/wmappmanifest-capabilities.png
Oops, something went wrong.
Binary file added
BIN
+178 KB
articles/media/mobile-engagement-windows-store-get-started/add-connection-info.png
Oops, something went wrong.
Binary file added
BIN
+54.7 KB
.../media/mobile-engagement-windows-store-get-started/app-connection-info-page.png
Oops, something went wrong.
Binary file added
BIN
+22.7 KB
articles/media/mobile-engagement-windows-store-get-started/aux-create-app.png
Oops, something went wrong.
Binary file added
BIN
+73.7 KB
articles/media/mobile-engagement-windows-store-get-started/aux-select-app.png
Oops, something went wrong.
Binary file added
BIN
+57.5 KB
articles/media/mobile-engagement-windows-store-get-started/enter-credentials.png
Oops, something went wrong.
Binary file added
BIN
+72.6 KB
...gagement-windows-store-get-started/manage-nuget-settings-new-source-add-lib.png
Oops, something went wrong.
Binary file added
BIN
+109 KB
...engagement-windows-store-get-started/manage-nuget-settings-new-source-added.png
Oops, something went wrong.
Binary file added
BIN
+146 KB
...les/media/mobile-engagement-windows-store-get-started/manifest-capabilities.png
Oops, something went wrong.
Binary file added
BIN
+182 KB
...dia/mobile-engagement-windows-store-get-started/manifest-declarations-reach.png
Oops, something went wrong.
Binary file added
BIN
+156 KB
...les/media/mobile-engagement-windows-store-get-started/manifest-declarations.png
Oops, something went wrong.
Binary file added
BIN
+161 KB
articles/media/mobile-engagement-windows-store-get-started/manifest-toast.png
Oops, something went wrong.
Binary file added
BIN
+145 KB
articles/media/mobile-engagement-windows-store-get-started/project-properties.png
Oops, something went wrong.
Binary file added
BIN
+172 KB
articles/media/mobile-engagement-windows-store-get-started/subclass-page.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
<properties | ||
pageTitle="Azure Mobile Engagement Android SDK Integration" | ||
description="Latest updates and procedures for Android SDK for Azure Mobile Engagement" | ||
services="mobile-engagement" | ||
documentationCenter="mobile" | ||
authors="kpiteira" | ||
manager="dwrede" | ||
editor="" /> | ||
|
||
<tags | ||
ms.service="mobile-engagement" | ||
ms.workload="mobile" | ||
ms.tgt_pltfrm="mobile-android" | ||
ms.devlang="Java" | ||
ms.topic="article" | ||
ms.date="02/12/2015" | ||
ms.author="kapiteir" /> | ||
|
||
|
||
#How to Integrate ADM with Engagement | ||
|
||
> [AZURE.IMPORTANT] You must follow the integration procedure described in the How to Integrate Engagement on Android document before following this guide. | ||
> | ||
> This document is useful only if you integrated the Reach module for any time campaign support. To integrate Reach campaigns in your application, please read first How to Integrate Engagement Reach on Android. | ||
##Introduction | ||
|
||
Integrating ADM allows your application to be pushed even when it's not running. | ||
|
||
No campaign data is actually sent via ADM, it's just a background signal telling the application to fetch the Engagement push. If the application is not running while receiving an ADM push, it triggers a connection to the Engagement servers to fetch the push, the Engagement connection remains active for about a minute in case the user launches the application in the response to the push. | ||
|
||
> [AZURE.IMPORTANT] Only Amazon Kindle devices running Android 4.0.3 or above are supported by Amazon Device Messaging; however, you can integrate this code safely on other devices. If the application cannot be woken up by ADM, the Engagement notification will be received the next time the application is launched. | ||
##Sign up to ADM | ||
|
||
If not already done, you must enable ADM on your Amazon account. | ||
|
||
The procedure is detailed at: [<https://developer.amazon.com/sdk/adm/credentials.html>]. | ||
|
||
Upon completing the procedure, you get: | ||
|
||
- OAuth credentials (a Client ID and a Client Secret) for Engagement to be able to push your devices. | ||
- An API Key that must be integrated into your application. | ||
|
||
##SDK integration | ||
|
||
### Managing device registrations | ||
|
||
Each device must send a registration command to the ADM servers, otherwise they can't be reached. | ||
|
||
If you already use the [ADM client library], and already have [integrated ADM] you can directly go to android-sdk-adm-receive. | ||
|
||
If you have not integrated ADM yet, Engagement has a simpler way to enable it in your application: | ||
|
||
Edit your `AndroidManifest.xml` file: | ||
|
||
- Add the Amazon namespace, the file should begin like this: | ||
|
||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:amazon="http://schemas.amazon.com/apk/res/android" | ||
|
||
- Inside the `<application/>` tag, add this section: | ||
|
||
<amazon:enable-feature | ||
android:name="com.amazon.device.messaging" | ||
android:required="false"/> | ||
<meta-data android:name="engagement:adm:register" android:value="true" /> | ||
|
||
- After adding the amazon tag, you may have a build error if your Project Build Target is below Android 2.1. You have to use an **Android 2.1+** build target (don't worry, you can still have a `minSdkVersion` set to 4). | ||
- Integrate the ADM API Key as an asset by following [this procedure]. | ||
|
||
Then follow the instructions of the next sections. | ||
|
||
### Communicate registration id to the Engagement Push service and receive notifications | ||
|
||
In order to communicate the registration id of the device to the Engagement Push service and receive its notifications, add the following to your `AndroidManifest.xml` file, inside the `<application/>` tag (even if you use ADM without Engagement): | ||
|
||
<receiver android:name="com.microsoft.azure.engagement.adm.EngagementADMEnabler" | ||
android:exported="false"> | ||
<intent-filter> | ||
<action android:name="com.microsoft.azure.engagement.intent.action.APPID_GOT"/> | ||
</intent-filter> | ||
</receiver> | ||
<receiver android:name="com.microsoft.azure.engagement.adm.EngagementADMReceiver" | ||
android:permission="com.amazon.device.messaging.permission.SEND"> | ||
<intent-filter> | ||
<action android:name="com.amazon.device.messaging.intent.REGISTRATION"/> | ||
<action android:name="com.amazon.device.messaging.intent.RECEIVE"/> | ||
<category android:name="<your_package_name>"/> | ||
</intent-filter> | ||
</receiver> | ||
|
||
Ensure you have the following permissions in your `AndroidManifest.xml` (before the `</application>` tag). | ||
|
||
<uses-permission android:name="android.permission.WAKE_LOCK"/> | ||
<uses-permission android:name="com.amazon.device.messaging.permission.RECEIVE"/> | ||
<uses-permission android:name="<your_package_name>.permission.RECEIVE_ADM_MESSAGE"/> | ||
<permission android:name="<your_package_name>.permission.RECEIVE_ADM_MESSAGE" android:protectionLevel="signature"/> | ||
|
||
##Grant Engagement OAuth credentials | ||
|
||
Submit your OAuth Credentials (Client ID and Client Secret) at $/\#application/YOUR\_APPID/native-push. | ||
|
||
You can now select "Any Time" when creating Reach announcements and polls. | ||
|
||
|
||
[<https://developer.amazon.com/sdk/adm/credentials.html>]:https://developer.amazon.com/sdk/adm/credentials.html | ||
[ADM client library]:https://developer.amazon.com/sdk/adm/setup.html | ||
[integrated ADM]:https://developer.amazon.com/sdk/adm/integrating-app.html | ||
[this procedure]:https://developer.amazon.com/sdk/adm/integrating-app.html#Asset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
<properties | ||
pageTitle="Azure Mobile Engagement Android SDK Integration" | ||
description="Latest updates and procedures for Android SDK for Azure Mobile Engagement" | ||
services="mobile-engagement" | ||
documentationCenter="mobile" | ||
authors="kpiteira" | ||
manager="dwrede" | ||
editor="" /> | ||
|
||
<tags | ||
ms.service="mobile-engagement" | ||
ms.workload="mobile" | ||
ms.tgt_pltfrm="mobile-android" | ||
ms.devlang="Java" | ||
ms.topic="article" | ||
ms.date="02/12/2015" | ||
ms.author="kapiteir" /> | ||
|
||
#How to Integrate GCM with Mobile Engagement | ||
|
||
> [AZURE.IMPORTANT] You must follow the integration procedure described in the How to Integrate Engagement on Android document before following this guide. | ||
> | ||
> This document is useful only if you integrated either the Reach module for any time campaign support. To integrate Reach campaigns in your application, please read first How to Integrate Engagement Reach on Android. | ||
##Introduction | ||
|
||
Integrating GCM allows your application to be pushed even when it's not running. | ||
|
||
No campaign data is actually sent via GCM, it's just a background signal telling the application to fetch the Engagement push. If the application is not running while receiving a GCM push, it triggers a connection to the Engagement servers to fetch the push, the Engagement connection remains active for about a minute in case the user launches the application in the response to the push. | ||
|
||
For your information, Engagement uses only [Send-to-Sync] messages with the `engagement.tickle` collapse key. | ||
|
||
> [AZURE.IMPORTANT] Only devices running Android 2.2 or above, having Google Play installed and having Google background connection enabled can be woken up by GCM; however, you can integrate this code safely on older versions of the Android SDK and on devices that can't support GCM (it just uses intents). If the application cannot be woken up by GCM, the Engagement notification will be received the next time the application is launched. | ||
|
||
> [AZURE.WARNING] If your own client code manages C2DM registration identifiers while the Engagement SDK is configured to use GCM, a conflict on the registration identifiers occurs, use GCM in Engagement only if your own code does not use C2DM. | ||
##Sign up to GCM and enable GCM Service | ||
|
||
If not already done, you must enable the GCM Service on your Google account. | ||
|
||
At the time of writing this document (February 5th, 2014), you can follow the procedure at: [<http://developer.android.com/guide/google/gcm/gs.html>]. | ||
|
||
Follow that procedure just to enable GCM on your account. When you reach the **Obtaining an API Key** section, don't read it and go back to this page instead of following the Google procedure any further. | ||
|
||
The procedure explains that the **Project Number** is used as the **GCM sender ID**, you need it later in this procedure. | ||
|
||
> [AZURE.IMPORTANT] **Project Number** is not to be confused with **Project ID**. Project ID can now be different (it's a name on new projects). What you need to integrate in the Engagement SDK is the **Project Number** and is displayed in the **Overview** menu in the [Google Developers Console]. | ||
##SDK integration | ||
|
||
### Managing device registrations | ||
|
||
Each device must send a registration command to the Google servers, otherwise they can't be reached. | ||
|
||
A device can also unregister from GCM notifications (the device is automatically unregistered if the application is uninstalled). | ||
|
||
If you use the [GCM client library], you can directly read android-sdk-gcm-receive. | ||
|
||
If you don't already send the registration intent yourself, you can make Engagement register the device automatically for you. | ||
|
||
To enable this, add the following to your `AndroidManifest.xml` file, inside the `<application/>` tag: | ||
|
||
<!-- If only 1 sender, don't forget the \n, otherwise it will be parsed as a negative number... --> | ||
<meta-data android:name="engagement:gcm:sender" android:value="<Your Google Project Number>\n" /> | ||
|
||
### Communicate registration id to the Engagement Push service and receive notifications | ||
|
||
In order to communicate the registration id of the device to the Engagement Push service and receive its notifications, add the following to your `AndroidManifest.xml` file, inside the `<application/>` tag (even if you manage device registrations yourself): | ||
|
||
<receiver android:name="com.microsoft.azure.engagement.gcm.EngagementGCMEnabler" | ||
android:exported="false"> | ||
<intent-filter> | ||
<action android:name="com.microsoft.azure.engagement.intent.action.APPID_GOT" /> | ||
</intent-filter> | ||
</receiver> | ||
<receiver android:name="com.microsoft.azure.engagement.gcm.EngagementGCMReceiver" android:permission="com.google.android.c2dm.permission.SEND"> | ||
<intent-filter> | ||
<action android:name="com.google.android.c2dm.intent.REGISTRATION" /> | ||
<action android:name="com.google.android.c2dm.intent.RECEIVE" /> | ||
<category android:name="<your_package_name>" /> | ||
</intent-filter> | ||
</receiver> | ||
|
||
Ensure you have the following permissions in your `AndroidManifest.xml` (after the `</application>` tag). | ||
|
||
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /> | ||
<uses-permission android:name="<your_package_name>.permission.C2D_MESSAGE" /> | ||
<permission android:name="<your_package_name>.permission.C2D_MESSAGE" android:protectionLevel="signature" /> | ||
|
||
##Grant Engagement access to a Server API Key | ||
|
||
If not already done, create a **Server API Key** on [Google Developers Console]. | ||
|
||
The Server Key **MUST NOT have IP restriction**. | ||
|
||
At the time of writing this document (February 5th, 2014), the procedure is the following: | ||
|
||
- To do so, open [Google Developers Console]. | ||
- Select the same project as earlier in the procedure (the one with the **Project Number** you integrated in `AndroidManifest.xml`). | ||
- Go to APIs & auth -\> Credentials, click on "CREATE NEW KEY" in the "Public API access" section. | ||
- Select "Server key". | ||
- On next screen, leave it blank **(no IP restriction)**, then click on Create. | ||
- Copy the generated **API key**. | ||
- Go to $/\#application/YOUR\_ENGAGEMENT\_APPID/native-push. | ||
- In GCM section edit the API Key with the one you just generated and copied. | ||
|
||
You are now able to select "Any Time" when creating Reach announcements and polls. | ||
|
||
> [AZURE.IMPORTANT] Engagement actually needs a **Server Key**, an Android Key cannot be used by Engagement servers. | ||
##Test | ||
|
||
Now please verify your integration by reading How to Test Engagement Integration on Android. | ||
|
||
|
||
[Send-to-Sync]:http://developer.android.com/google/gcm/adv.html#collapsible | ||
[<http://developer.android.com/guide/google/gcm/gs.html>]:http://developer.android.com/guide/google/gcm/gs.html | ||
[Google Developers Console]:https://cloud.google.com/console | ||
[GCM client library]:http://developer.android.com/guide/google/gcm/gs.html#libs | ||
[Google Developers Console]:https://cloud.google.com/console | ||
|
Oops, something went wrong.