Skip to content

Commit 7beb412

Browse files
committed
Prepare for 2.1.5 Firebase upgrade
1 parent b8420c7 commit 7beb412

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

CHANGELOG.md

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

18+
## [2.1.5](https://github.com/Iterable/iterable-android-sdk/releases/tag/2.1.5)
19+
_Released on 2017-06-09_
20+
#### Added
21+
- Added full support for newly created Firebase applications
22+
- Added new functionality for `registerForPush` which takes in the optional pushServicePlatform
23+
- `IterableConstants.MESSAGING_PLATFORM_GOOGLE` (GCM)
24+
- `IterableConstants. MESSAGING_PLATFORM_FIREBASE` (FCM)
25+
- `IterableFirebaseInstanceIDService` handles firebase token registrations automatically on install.
26+
- Added in default tracked device values for `registerDeviceToken`
27+
28+
#### Changed
29+
- Changed IterablePushRegistrationGCM to IterablePushRegistration so the registration class is not GCM specific.
30+
- Changed the disable logic to no longer enable the deviceToken prior to disabling.
31+
1832
## [2.1.4](https://github.com/Iterable/iterable-android-sdk/releases/tag/2.1.4)
1933
_Released on 2017-02-23_
2034

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,17 @@ protected void onCreate(Bundle savedInstanceState) {
5858
}
5959
```
6060

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+
6172
# License
6273

6374
The MIT License

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.4'
44+
libraryVersion = '2.1.5'
4545

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

0 commit comments

Comments
 (0)