Skip to content

Commit

Permalink
Merge pull request #22 from geeksweep/readmeUpdate
Browse files Browse the repository at this point in the history
ReadMe Update
  • Loading branch information
MihaelIsaev authored Feb 26, 2020
2 parents 42347be + 16376b1 commit 464e1ea
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,13 @@ func configure(_ app: Application) throws {
#### OPTIONAL: Set default configurations, e.g. to enable notification sound
Add the following code to your `configure.swift` after `app.fcm.configuration = ...`
```swift
app.fcm.apnsDefaultConfig = FCMApnsConfig(headers: [:],
aps: FCMApnsApsObject(sound: "default"))
app.fcm.androidDefaultConfig = FCMAndroidConfig(ttl: "86400s",
app.fcm.configuration?.apnsDefaultConfig = FCMApnsConfig(headers: [:], aps: FCMApnsApsObject(sound: "default"))

app.fcm.configuration?.androidDefaultConfig = FCMAndroidConfig(ttl: "86400s",
restricted_package_name: "com.example.myapp",
notification: FCMAndroidNotification(sound: "default"))
app.fcm.webpushDefaultConfig = FCMWebpushConfig(headers: [:],

app.fcm.configuration?.webpushDefaultConfig = FCMWebpushConfig(headers: [:],
data: [:],
notification: [:])
```
Expand Down

0 comments on commit 464e1ea

Please sign in to comment.