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
* "sound" => "string" (e.g. "notification.mp3" will play /platform/android/res/raw/notification.mp3)
194
194
195
195
### Android: Note about custom sounds
196
-
To use a custom sound > Android O you need to create a second channel. The default channel will always use the default notification sound on the device!
196
+
To use a custom sound > Android O you need to create a second channel. The default channel will always use the default notification sound on the device!
197
197
198
198
### Android: Note for switching between v<=v2.0.2 and >=v2.0.3 if you use notification channels with custom sounds
199
199
With versions prior to 2.0.3 of this module, FirebaseCloudMessaging.createNotificationChannel would create the notification sound uri using the resource id of the sound file in the `res/raw` directory. However, as described in this [android issue](https://issuetracker.google.com/issues/131303134), those resource ids can change to reference different files (or no file) between app versions, and that happens the notification channel may play a different or no sound than originally intended.
@@ -261,7 +261,7 @@ so receive the `gcm.message_id` key from the notification payload instead.
261
261
`apnsToken` (String, set) (iOS only)
262
262
263
263
`lastData` (Object) (Android only)
264
-
The propery `lastData` will contain the data part when you send a notification push message (so both nodes are visible inside the push payload).
264
+
The propery `lastData` will contain the data part when you send a notification push message (so both nodes are visible inside the push payload). Read before calling `registerForPushNotifications()`.
265
265
266
266
#### Events
267
267
@@ -331,10 +331,16 @@ if (OS_ANDROID) {
331
331
showBadge:true
332
332
});
333
333
// if you use a custom id you have to set the same to the `channelId` in you php send script!
0 commit comments