From 5e9289fd81b1234675e1e85d11a2a22d571a7f70 Mon Sep 17 00:00:00 2001 From: Barry Li Date: Thu, 21 Jan 2016 15:07:32 -0800 Subject: [PATCH 1/3] remove NetworkStateReceiver from manifest --- docs/migrating_to_2.0.0.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/migrating_to_2.0.0.md b/docs/migrating_to_2.0.0.md index c86b2581d..e106004a6 100644 --- a/docs/migrating_to_2.0.0.md +++ b/docs/migrating_to_2.0.0.md @@ -18,4 +18,8 @@ We have also changed the way that you set your customer's name and email. The ne ## Unread Messages Listener -We've modified how you pass in an `UnreadMessagesListener` when you want to be notified that the number of messages waiting to be read by your customer has changed. You should replace your calls to the deprecated `setUnreadMessagesListener()` with the new `addUnreadMessagesListener()`. \ No newline at end of file +We've modified how you pass in an `UnreadMessagesListener` when you want to be notified that the number of messages waiting to be read by your customer has changed. You should replace your calls to the deprecated `setUnreadMessagesListener()` with the new `addUnreadMessagesListener()`. + +## Manifest file + +We have removed Apptentive's NetworkStateReceiver from sdk. Please make sure remove ` ... ` from your manifest. From 0e52bc60f219417358aec3042699299224fe835c Mon Sep 17 00:00:00 2001 From: Barry Li Date: Mon, 7 Mar 2016 12:15:37 -0800 Subject: [PATCH 2/3] Add test google-services.json to enable gcm testing. --- .../apptentive-example/google-services.json | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 samples/apptentive-example/google-services.json diff --git a/samples/apptentive-example/google-services.json b/samples/apptentive-example/google-services.json new file mode 100644 index 000000000..327ee48f5 --- /dev/null +++ b/samples/apptentive-example/google-services.json @@ -0,0 +1,39 @@ +{ + "project_info": { + "project_id": "apptentive-example-app", + "project_number": "864112465884", + "name": "Apptentive Example App" + }, + "client": [ + { + "client_info": { + "client_id": "android:com.apptentive.android.example", + "client_type": 1, + "android_client_info": { + "package_name": "com.apptentive.android.example" + } + }, + "oauth_client": [], + "services": { + "analytics_service": { + "status": 1 + }, + "cloud_messaging_service": { + "status": 2, + "apns_config": [] + }, + "appinvite_service": { + "status": 1, + "other_platform_oauth_client": [] + }, + "google_signin_service": { + "status": 1 + }, + "ads_service": { + "status": 1 + } + } + } + ], + "ARTIFACT_VERSION": "1" +} \ No newline at end of file From 7e60462dea84031fe99849d6d4562c2b3d6bfc3a Mon Sep 17 00:00:00 2001 From: luna alison alvarez Date: Sun, 27 Mar 2016 15:05:05 -0700 Subject: [PATCH 3/3] fix UnreadMessagesListener comment typo --- apptentive/src/com/apptentive/android/sdk/Apptentive.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apptentive/src/com/apptentive/android/sdk/Apptentive.java b/apptentive/src/com/apptentive/android/sdk/Apptentive.java index a53054be8..a799e7dea 100755 --- a/apptentive/src/com/apptentive/android/sdk/Apptentive.java +++ b/apptentive/src/com/apptentive/android/sdk/Apptentive.java @@ -654,7 +654,7 @@ public static boolean canShowMessageCenter(Context context) { /** * Set a listener to be notified when the number of unread messages in the Message Center changes. * - * @param listener An UnreadMessageListener that you instantiate. + * @param listener An UnreadMessagesListener that you instantiate. * @deprecated use {@link #addUnreadMessagesListener(UnreadMessagesListener)} instead. */ @Deprecated @@ -665,7 +665,7 @@ public static void setUnreadMessagesListener(UnreadMessagesListener listener) { /** * Add a listener to be notified when the number of unread messages in the Message Center changes. * - * @param listener An UnreadMessageListener that you instantiate. Do not pass in an anonymous class. + * @param listener An UnreadMessagesListener that you instantiate. Do not pass in an anonymous class. * Instead, create your listener as an instance variable and pass that in. This * allows us to keep a weak reference to avoid memory leaks. */