Skip to content

Commit 19755d1

Browse files
authored
Remove deprecated messaging calls (#694)
1 parent 3f826e9 commit 19755d1

File tree

2 files changed

+4
-36
lines changed

2 files changed

+4
-36
lines changed

docs/readme.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ Support
6969

7070
Release Notes
7171
-------------
72+
### 11.0.0
73+
- Changes
74+
- Messaging: Remove deprecated calls `Send`, `Subscribe`, and `Unsubscribe`.
75+
7276
### 10.7.0
7377
- Changes
7478
- General: Update to Firebase C++ SDK version 10.7.0.

messaging/src/swig/messaging.i

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -543,39 +543,6 @@ void* NotificationCopyAndroidNotificationParams(void* notification) {
543543
}
544544
#endif // DOXYGEN
545545

546-
#if DOXYGEN
547-
/// @brief Subscribe to receive all messages to the specified topic.
548-
///
549-
/// Subscribes an app instance to a topic, enabling it to receive messages sent to that topic.
550-
///
551-
/// Call this function from the main thread. FCM is not thread safe.
552-
///
553-
/// @param[in] topic The name of the topic to subscribe. Must match the following regular expression: `[a-zA-Z0-9-_.~%]{1,900}`.
554-
[System.Obsolete("FirebaseMessaging.Subscribe is deprecated. Please use FirebaseMessaging.SubscribeAsync() instead")]
555-
public static void Subscribe(string topic);
556-
#else
557-
[System.Obsolete("FirebaseMessaging.Subscribe is deprecated. Please use FirebaseMessaging.SubscribeAsync() instead")]
558-
public static void Subscribe(string topic) {
559-
SubscribeAsync(topic);
560-
}
561-
#endif
562-
563-
#if DOXYGEN
564-
/// @brief Unsubscribe from a topic.
565-
///
566-
/// Unsubscribes an app instance from a topic, stopping it from receiving any further messages sent to that topic.
567-
///
568-
/// Call this function from the main thread. FCM is not thread safe.
569-
///
570-
/// @param[in] topic The name of the topic to unsubscribe from. Must match the following regular expression: `[a-zA-Z0-9-_.~%]{1,900}`.
571-
[System.Obsolete("FirebaseMessaging.Unsubscribe is deprecated. Please use FirebaseMessaging.UnsubscribeAsync() instead")]
572-
public static void Unsubscribe(string topic);
573-
#else
574-
[System.Obsolete("FirebaseMessaging.Unsubscribe is deprecated. Please use FirebaseMessaging.UnsubscribeAsync() instead")]
575-
public static void Unsubscribe(string topic) {
576-
UnsubscribeAsync(topic);
577-
}
578-
#endif
579546
%}
580547

581548
%typemap(cscode) firebase::messaging::Message %{
@@ -695,9 +662,6 @@ void* NotificationCopyAndroidNotificationParams(void* notification) {
695662
%csmethodmodifiers firebase::messaging::DeleteToken()
696663
"internal"
697664

698-
%csmethodmodifiers firebase::messaging::Send(const Message&)
699-
"[System.Obsolete(\"FirebaseMessaging.Send is deprecated and will be removed in a future version.\")]\n "
700-
701665
// Messaging has a lot of read-only properties, so make all immutable
702666
// and call out the mutable ones.
703667
%immutable;

0 commit comments

Comments
 (0)