You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31-29Lines changed: 31 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,42 +1,55 @@
1
1
# Iterable Android SDK
2
2
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.
4
4
5
-
# Setting up a push integration in Iterable
5
+
##Setting up a push integration in Iterable
6
6
7
-
Before you even start with the SDK, you will need to
7
+
Before you even start with the SDK, you will need to:
8
8
9
9
1. Set your application up to receive push notifications, and
10
10
2. Set up a push integration in Iterable. This allows Iterable to communicate on your behalf with Google's Push Notification Service.
11
11
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
13
13
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.

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.
17
17
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).

21
21
22
22
Congratulations, you've configured your mobile application to receive push notifications! Now, let's set up the Iterable SDK...
23
23
24
-
# Automatic Installation
24
+
##Automatic Installation
25
25
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.
27
27
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
34
29
35
30
See our [setup guide](http://support.iterable.com/hc/en-us/articles/204780589-Push-Notification-Setup-iOS-and-Android-) for more information.
36
31
37
32
Also see our [push notification setup FAQs](http://support.iterable.com/hc/en-us/articles/206791196-Push-Notification-Setup-FAQ-s).
38
33
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.
**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
+
### InAppNotifications
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
40
53
41
54
See our [DeeplinkingSetupGuide] (https://support.iterable.com/hc/en-us/articles/211676923)
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.
**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.
0 commit comments