Skip to content

Commit 90d4d3d

Browse files
committed
Prepare for 2.1.6 In App consume updates + fixes
1 parent 504fd8a commit 90d4d3d

File tree

3 files changed

+41
-30
lines changed

3 files changed

+41
-30
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1515
#### Fixed
1616
- nothing yet
1717

18+
## [2.1.6](https://github.com/Iterable/iterable-android-sdk/releases/tag/2.1.6)
19+
_Released on 2017-07-19_
20+
21+
#### Added
22+
- Added the in-app consume logic to automatically remove the notification from list of in-app notifications.
23+
24+
#### Fixed
25+
- Fixed the payloadfor trackInAppClick to contain the userId.
26+
1827
## [2.1.5](https://github.com/Iterable/iterable-android-sdk/releases/tag/2.1.5)
1928
_Released on 2017-06-09_
2029

README.md

Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,55 @@
11
# Iterable Android SDK
22

3-
`iterable-android-sdk` is a java implementation of an android client for Iterable, for api version 15 and higher.
3+
The `iterable-android-sdk` is a java implementation of an android client for Iterable, supporting api versions 15 and higher.
44

5-
# Setting up a push integration in Iterable
5+
## Setting up a push integration in Iterable
66

7-
Before you even start with the SDK, you will need to
7+
Before you even start with the SDK, you will need to:
88

99
1. Set your application up to receive push notifications, and
1010
2. Set up a push integration in Iterable. This allows Iterable to communicate on your behalf with Google's Push Notification Service.
1111

12-
You will also need to generate an SSL certificate and private key for use with the push service. See the links at the end of this section for more information on how to do that.
12+
For information on setting up your Google Api Project, see
1313

14-
Once you have your APNS certificates set up, go to `Integrations -> Mobile Push` in Iterable. When creating an integration, you will need to pick a name and a platform. The name is entirely up to you; it will be the `applicationName` when you use `registerDeviceToken` in our SDK. The platform will be `GCM`. Add the GCM api server key.
14+
* [Configuring Push Notifications](http://docs.aws.amazon.com/sns/latest/dg/mobile-push-gcm.html)
1515

16-
![Creating an integration in Iterable](https://support.iterable.com/hc/en-us/article_attachments/211841066/2016-12-08_1442.png)
16+
To setup your push integration with Iterable in the web dashboard go to `Integrations -> Mobile Push`. When creating an integration, you will need to pick a name and a platform. The name is entirely up to you; it will be the `applicationName` when you use `registerForPush` or `registerDeviceToken` in our SDK.
1717

18-
For more information, see
18+
The platform will be `GCM` (This also includes FCM since it runs off of GCM). Add the Api server key (If on FCM use the Legacy Server Key).
1919

20-
* [Configuring Push Notifications](http://docs.aws.amazon.com/sns/latest/dg/mobile-push-gcm.html)
20+
![Creating an integration in Iterable](https://support.iterable.com/hc/en-us/article_attachments/211841066/2016-12-08_1442.png)
2121

2222
Congratulations, you've configured your mobile application to receive push notifications! Now, let's set up the Iterable SDK...
2323

24-
# Automatic Installation
24+
## Automatic Installation
2525

26-
See BinTray for the latest version of the Iterable Android SDK on [Bintray](https://bintray.com/davidtruong/maven/Iterable-SDK)
26+
See [Bintray](https://bintray.com/davidtruong/maven/Iterable-SDK) for the latest version of the Iterable Android SDK.
2727

28-
#### InApp Notifications
29-
To display the user's InApp notifications call `spawnInAppNotification` with a defined `IterableActionHandler` callback handler. When a user clicks a button on the notification, the defined handler is called and passed the action name defined in the InApp template.
30-
31-
InApp opens and button clicks are automatically tracked when the notification is called via `spawnInAppNotification`.
32-
33-
# Additional Information
28+
## Additional Information
3429

3530
See our [setup guide](http://support.iterable.com/hc/en-us/articles/204780589-Push-Notification-Setup-iOS-and-Android-) for more information.
3631

3732
Also see our [push notification setup FAQs](http://support.iterable.com/hc/en-us/articles/206791196-Push-Notification-Setup-FAQ-s).
3833

39-
# Deeplinking
34+
##Optional Setup
35+
36+
### Firebase Messaging
37+
At this time there is no requirement to upgrade to FCM since Google will continue to support current versions of GCM android.
38+
39+
If you want to use using Firebase Cloud Messaging (FCM) instead of Google Cloud Messaging (GCM) pass in `IterableConstants. MESSAGING_PLATFORM_FIREBASE` as the pushServicePlatform.
40+
41+
```java
42+
public void registerForPush(String iterableAppId, String projectNumber, String pushServicePlatform) {
43+
```
44+
45+
**Note**: If you are upgrading to FCM, do not downgrade back to GCM as this will cause devices to be registered for notifications twice and users will get duplicate notifications.
46+
47+
### InApp Notifications
48+
To display the user's InApp notifications call `spawnInAppNotification` with a defined `IterableActionHandler` callback handler. When a user clicks a button on the notification, the defined handler is called and passed the action name defined in the InApp template. If no action is defined, the callback handler will not be called.
49+
50+
InApp opens and button clicks are automatically tracked when the notification is called via `spawnInAppNotification`. `spawnInAppNotification` automatically consumes and removes the notification from the user's list of pending notification. If you do not want to remove the notification use `getInAppMessages` & `IterableInAppManager.showNotification` instead.
51+
52+
### Deeplinking
4053

4154
See our [Deeplinking Setup Guide] (https://support.iterable.com/hc/en-us/articles/211676923)
4255

@@ -58,18 +71,7 @@ protected void onCreate(Bundle savedInstanceState) {
5871
}
5972
```
6073
61-
# Firebase Messaging
62-
At this time there is no requirement to upgrade to FCM since Google will continue to support current versions of GCM android.
63-
64-
If you want to use using Firebase Cloud Messaging (FCM) instead of Google Cloud Messaging (GCM) pass in `IterableConstants. MESSAGING_PLATFORM_FIREBASE` as the pushServicePlatform.
65-
66-
```java
67-
public void registerForPush(String iterableAppId, String projectNumber, String pushServicePlatform) {
68-
```
69-
70-
**Note**: If you are upgrading to FCM, do not downgrade back to GCM as this will cause devices to be registered for notifications twice and users will get duplicate notifications.
71-
72-
# License
74+
## License
7375
7476
The MIT License
7577

iterableapi/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ ext {
4141
siteUrl = 'https://github.com/Iterable/iterable-android-sdk'
4242
gitUrl = 'https://github.com/Iterable/iterable-android-sdk.git'
4343

44-
libraryVersion = '2.1.5'
44+
libraryVersion = '2.1.6'
4545

4646
developerId = 'davidtruong'
4747
developerName = 'David Truong'

0 commit comments

Comments
 (0)