Releases: icerockdev/fcm-push-service
Releases · icerockdev/fcm-push-service
release/2.1.2: Added firebase messaging service late init for test supports
added firebase messaging service late init for test supports (#17)
release/2.1.1: Added error message to extended send push result
added error message to extended send push result (#16)
release/2.1.0: Added extended information in PushResult class
added extended send push result (#14)
release/2.0.0: Migrate from legacy FCM API
Now you need to use service account credentials instead api key.
To generate a private key file for your service account:
-
In the Firebase console, open Settings > Service Accounts.
-
Click Generate New Private Key, then confirm by clicking Generate Key.
-
Securely store the JSON file containing the key.
Migration guide:
Before:
PushService(
coroutineScope = fcmScope,
config = FCMConfig(
serverKey = appConf.getString("fcm.serverKey")
),
pushRepository = object : IPushRepository {
override fun deleteByTokenList(tokenList: List<String>): Int {
// remove wrong tokens here
return 0
}
}
)
After:
NOTE: in "fcm.googleServiceAccountJson" use content of saved JSON file as string
PushService(
coroutineScope = fcmScope,
config = FCMConfig(
googleServiceAccountJson = appConf.getString("fcm.googleServiceAccountJson")
),
pushRepository = object : IPushRepository {
override fun deleteByTokenList(tokenList: List<String>): Int {
// remove wrong tokens here
return 0
}
}
)
release/1.0.0: Upgraded ktor version to 2.2.2
For upgrade ktor to version 2.x in your project see Migrating from 1.6.x to 2.0.x and Migrating from 2.0.x to 2.2.x
release/0.3.0: Updated notification properties
NOTE: The "image" property has been removed from the notification as it is not supported by the API being used.
release/0.2.0: Removed jcenter and bintray, updated dependencies
Removed jcenter and bintray, updated dependencies
release/0.1.1: Publish to Maven Central Repository
Merge pull request #4 from icerockdev/maven-central-publish Publish to Maven Central
release/0.1.0: Upgrade Kotlin, Ktor, Gradle
Merge pull request #3 from icerockdev/upgrade-kotlin-ktor-gradle kotlin 1.4.31, ktor 1.5.2, gradle 6.8.3, java 1.8 -> 11
release/0.0.2: Support of sending push by 1k tokens chunk
Merge pull request #2 from icerockdev/task/WD-361 WD-361 Update github workflows