Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate additional FCM upstream messaging methods. #6411

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

gsakakihara
Copy link
Contributor

  • Also removed references to upstream in documentation.

Copy link
Contributor

github-actions bot commented Oct 24, 2024

Javadoc Changes:
--- /home/runner/diff/original/firebase-kotlindoc/android/com/google/firebase/messaging/FirebaseMessaging.html	2024-10-24 20:32:38.431339800 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/android/com/google/firebase/messaging/FirebaseMessaging.html	2024-10-24 20:30:43.370846537 +0000
@@ -11,7 +11,7 @@
       <pre>public class <a href="/docs/reference/android/com/google/firebase/messaging/FirebaseMessaging.html">FirebaseMessaging</a></pre>
     </p>
     <hr>
-    <p>Top level <a href="https://firebase.google.com/docs/cloud-messaging/">Firebase Cloud Messaging</a> singleton that provides methods for subscribing to topics and sending upstream messages. </p>
+    <p>Top level <a href="https://firebase.google.com/docs/cloud-messaging/">Firebase Cloud Messaging</a> singleton that provides methods for generating tokens and subscribing to topics. </p>
     <p>In order to receive messages, declare an implementation of <code><a href="/docs/reference/android/com/google/firebase/messaging/FirebaseMessagingService.html">FirebaseMessagingService</a></code> in the app manifest. To process messages, override base class methods to handle any events required by the application.</p>
     <h2>Summary</h2>
     <div class="devsite-table-wrapper">
@@ -96,7 +96,7 @@
             <td>
               <div><code><span><del><a href="/docs/reference/android/com/google/firebase/messaging/FirebaseMessaging.html#send(com.google.firebase.messaging.RemoteMessage)">send</a></del></span>(@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/messaging/RemoteMessage.html">RemoteMessage</a>&nbsp;message)</code></div>
               <p><strong>This method is deprecated.</strong>
-                <p>FCM upstream messaging is deprecated and will be decommissioned in June 2024.</p>
+                <p>FCM upstream messaging is decommissioned.</p>
               </p>
             </td>
           </tr>
@@ -272,7 +272,7 @@
         <h3 class="api-name" id="send(com.google.firebase.messaging.RemoteMessage)">send</h3>
         <pre class="api-signature no-pretty-print">public&nbsp;void&nbsp;<span><del><a href="/docs/reference/android/com/google/firebase/messaging/FirebaseMessaging.html#send(com.google.firebase.messaging.RemoteMessage)">send</a></del></span>(@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/messaging/RemoteMessage.html">RemoteMessage</a>&nbsp;message)</pre>
         <aside class="caution"><strong>This method is deprecated.</strong><br>
-          <p>FCM upstream messaging is deprecated and will be decommissioned in June 2024. Learn more in the <a href="https://firebase.google.com/support/faq#fcm-23-deprecation">FAQ about FCM features deprecated in June 2023</a>.</p>
+          <p>FCM upstream messaging is decommissioned. Learn more in the <a href="https://firebase.google.com/support/faq#fcm-23-deprecation">FAQ about FCM features deprecated in June 2023</a>.</p>
         </aside>
         <p>Sends <code>message</code> upstream to your app server. </p>
         <p>When there is an active connection the message will be sent immediately, otherwise the message will be queued up to the time to live (TTL) set in the message.</p>
--- /home/runner/diff/original/firebase-kotlindoc/android/com/google/firebase/messaging/FirebaseMessagingService.html	2024-10-24 20:32:38.431339800 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/android/com/google/firebase/messaging/FirebaseMessagingService.html	2024-10-24 20:30:43.370846537 +0000
@@ -43,7 +43,7 @@
     </div>
     <hr>
     <p>Base class for receiving messages from Firebase Cloud Messaging. </p>
-    <p>Extending this class is required to be able to handle downstream messages. It also provides functionality to automatically display notifications, and has methods that are invoked to give the status of upstream messages. </p>
+    <p>Extending this class is required to be able to handle downstream messages. It also provides functionality to automatically display notifications. </p>
     <p>Override base class methods to handle any events required by the application. All methods are invoked on a background thread, and <em>may be called when the app is in the background or not open</em>. </p>
     <p>Include the following in the manifest: </p>
     <pre class="prettyprint">&lt;service
@@ -110,8 +110,10 @@
           <tr>
             <td><code>void</code></td>
             <td>
-              <div><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/WorkerThread.html">WorkerThread</a><br><a href="/docs/reference/android/com/google/firebase/messaging/FirebaseMessagingService.html#onMessageSent(java.lang.String)">onMessageSent</a>(@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;msgId)</code></div>
-              <p>Called when an upstream message has been successfully sent to the GCM connection server.</p>
+              <div><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/WorkerThread.html">WorkerThread</a><br><span><del><a href="/docs/reference/android/com/google/firebase/messaging/FirebaseMessagingService.html#onMessageSent(java.lang.String)">onMessageSent</a></del></span>(@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;msgId)</code></div>
+              <p><strong>This method is deprecated.</strong>
+                <p>FCM upstream messaging is decommissioned.</p>
+              </p>
             </td>
           </tr>
           <tr>
@@ -124,8 +126,10 @@
           <tr>
             <td><code>void</code></td>
             <td>
-              <div><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/WorkerThread.html">WorkerThread</a><br><a href="/docs/reference/android/com/google/firebase/messaging/FirebaseMessagingService.html#onSendError(java.lang.String,java.lang.Exception)">onSendError</a>(@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;msgId,&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/lang/Exception.html">Exception</a>&nbsp;exception)</code></div>
-              <p>Called when there was an error sending an upstream message.</p>
+              <div><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/WorkerThread.html">WorkerThread</a><br><span><del><a href="/docs/reference/android/com/google/firebase/messaging/FirebaseMessagingService.html#onSendError(java.lang.String,java.lang.Exception)">onSendError</a></del></span>(@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;msgId,&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/lang/Exception.html">Exception</a>&nbsp;exception)</code></div>
+              <p><strong>This method is deprecated.</strong>
+                <p>FCM upstream messaging is decommissioned.</p>
+              </p>
             </td>
           </tr>
         </tbody>
@@ -1996,7 +2000,10 @@
       </div>
       <div class="api-item"><a name="onMessageSent-java.lang.String-"></a><a name="onmessagesent"></a>
         <h3 class="api-name" id="onMessageSent(java.lang.String)">onMessageSent</h3>
-        <pre class="api-signature no-pretty-print">@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/WorkerThread.html">WorkerThread</a><br>public&nbsp;void&nbsp;<a href="/docs/reference/android/com/google/firebase/messaging/FirebaseMessagingService.html#onMessageSent(java.lang.String)">onMessageSent</a>(@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;msgId)</pre>
+        <pre class="api-signature no-pretty-print">@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/WorkerThread.html">WorkerThread</a><br>public&nbsp;void&nbsp;<span><del><a href="/docs/reference/android/com/google/firebase/messaging/FirebaseMessagingService.html#onMessageSent(java.lang.String)">onMessageSent</a></del></span>(@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;msgId)</pre>
+        <aside class="caution"><strong>This method is deprecated.</strong><br>
+          <p>FCM upstream messaging is decommissioned. Learn more in the <a href="https://firebase.google.com/support/faq#fcm-23-deprecation">FAQ about FCM features deprecated in June 2023</a>.</p>
+        </aside>
         <p>Called when an upstream message has been successfully sent to the GCM connection server.</p>
         <div class="devsite-table-wrapper">
           <table class="responsive">
@@ -2049,7 +2056,10 @@
       </div>
       <div class="api-item"><a name="onSendError(java.lang.String, java.lang.Exception)"></a><a name="onSendError-java.lang.String-java.lang.Exception-"></a><a name="onsenderror"></a>
         <h3 class="api-name" id="onSendError(java.lang.String,java.lang.Exception)">onSendError</h3>
-        <pre class="api-signature no-pretty-print">@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/WorkerThread.html">WorkerThread</a><br>public&nbsp;void&nbsp;<a href="/docs/reference/android/com/google/firebase/messaging/FirebaseMessagingService.html#onSendError(java.lang.String,java.lang.Exception)">onSendError</a>(@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;msgId,&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/lang/Exception.html">Exception</a>&nbsp;exception)</pre>
+        <pre class="api-signature no-pretty-print">@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/WorkerThread.html">WorkerThread</a><br>public&nbsp;void&nbsp;<span><del><a href="/docs/reference/android/com/google/firebase/messaging/FirebaseMessagingService.html#onSendError(java.lang.String,java.lang.Exception)">onSendError</a></del></span>(@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;msgId,&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/lang/Exception.html">Exception</a>&nbsp;exception)</pre>
+        <aside class="caution"><strong>This method is deprecated.</strong><br>
+          <p>FCM upstream messaging is decommissioned. Learn more in the <a href="https://firebase.google.com/support/faq#fcm-23-deprecation">FAQ about FCM features deprecated in June 2023</a>.</p>
+        </aside>
         <p>Called when there was an error sending an upstream message.</p>
         <div class="devsite-table-wrapper">
           <table class="responsive">
--- /home/runner/diff/original/firebase-kotlindoc/android/com/google/firebase/messaging/RemoteMessage.html	2024-10-24 20:32:38.431339800 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/android/com/google/firebase/messaging/RemoteMessage.html	2024-10-24 20:30:43.366846520 +0000
@@ -30,9 +30,8 @@
     </div>
     <hr>
     <p>A remote Firebase Message. </p>
-    <p>Messages will be received via <code><a href="/docs/reference/android/com/google/firebase/messaging/FirebaseMessagingService.html#onMessageReceived(com.google.firebase.messaging.RemoteMessage)">onMessageReceived</a></code> and can be sent via <code><a href="/docs/reference/android/com/google/firebase/messaging/FirebaseMessaging.html#send(com.google.firebase.messaging.RemoteMessage)">send</a></code>. </p>
+    <p>Messages will be received via <code><a href="/docs/reference/android/com/google/firebase/messaging/FirebaseMessagingService.html#onMessageReceived(com.google.firebase.messaging.RemoteMessage)">onMessageReceived</a></code>. </p>
     <p>Messages may have a <code><a href="/docs/reference/android/com/google/firebase/messaging/RemoteMessage.Notification.html">Notification</a></code> instance if they are received while the application is in the foreground, otherwise they will be automatically posted to the notification tray. </p>
-    <p>Use the <code><a href="/docs/reference/android/com/google/firebase/messaging/RemoteMessage.Builder.html">Builder</a></code> class for building message instances to send via <code><a href="/docs/reference/android/com/google/firebase/messaging/FirebaseMessaging.html#send(com.google.firebase.messaging.RemoteMessage)">send</a></code>.</p>
     <h2>Summary</h2>
     <div class="devsite-table-wrapper">
       <table class="responsive">
@@ -212,8 +211,10 @@
           <tr>
             <td><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/Nullable.html">Nullable</a> <a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a></code></td>
             <td>
-              <div><code><a href="/docs/reference/android/com/google/firebase/messaging/RemoteMessage.html#getTo()">getTo</a>()</code></div>
-              <p>Gets the message destination.</p>
+              <div><code><span><del><a href="/docs/reference/android/com/google/firebase/messaging/RemoteMessage.html#getTo()">getTo</a></del></span>()</code></div>
+              <p><strong>This method is deprecated.</strong>
+                <p>FCM upstream messaging is decommissioned.</p>
+              </p>
             </td>
           </tr>
           <tr>
@@ -613,12 +614,11 @@
       </div>
       <div class="api-item"><a name="getTo--"></a><a name="getto"></a>
         <h3 class="api-name" id="getTo()">getTo</h3>
-        <pre class="api-signature no-pretty-print">public&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/Nullable.html">Nullable</a> <a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;<a href="/docs/reference/android/com/google/firebase/messaging/RemoteMessage.html#getTo()">getTo</a>()</pre>
+        <pre class="api-signature no-pretty-print">public&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/Nullable.html">Nullable</a> <a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;<span><del><a href="/docs/reference/android/com/google/firebase/messaging/RemoteMessage.html#getTo()">getTo</a></del></span>()</pre>
+        <aside class="caution"><strong>This method is deprecated.</strong><br>
+          <p>FCM upstream messaging is decommissioned. Learn more in the <a href="https://firebase.google.com/support/faq#fcm-23-deprecation">FAQ about FCM features deprecated in June 2023</a>.</p>
+        </aside>
         <p>Gets the message destination. </p>
-        <ul>
-          <li>For upstream messages, this will be of the form <code>[email protected]</code>. </li>
-          <li>For downstream messages, this will be the Firebase installations ID (FID). </li>
-        </ul>
       </div>
       <div class="api-item"><a name="getTtl--"></a><a name="getttl"></a>
         <h3 class="api-name" id="getTtl()">getTtl</h3>
--- /home/runner/diff/original/firebase-kotlindoc/android/com/google/firebase/messaging/package-summary.html	2024-10-24 20:32:38.431339800 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/android/com/google/firebase/messaging/package-summary.html	2024-10-24 20:30:43.366846520 +0000
@@ -35,7 +35,7 @@
           <tr>
             <td><code><a href="/docs/reference/android/com/google/firebase/messaging/FirebaseMessaging.html">FirebaseMessaging</a></code></td>
             <td>
-              <p>Top level <a href="https://firebase.google.com/docs/cloud-messaging/">Firebase Cloud Messaging</a> singleton that provides methods for subscribing to topics and sending upstream messages.</p>
+              <p>Top level <a href="https://firebase.google.com/docs/cloud-messaging/">Firebase Cloud Messaging</a> singleton that provides methods for generating tokens and subscribing to topics.</p>
             </td>
           </tr>
           <tr>
--- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/messaging/FirebaseMessaging.html	2024-10-24 20:32:38.431339800 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/messaging/FirebaseMessaging.html	2024-10-24 20:30:43.350846452 +0000
@@ -11,7 +11,7 @@
       <pre>class <a href="/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessaging.html">FirebaseMessaging</a></pre>
     </p>
     <hr>
-    <p>Top level <a href="https://firebase.google.com/docs/cloud-messaging/">Firebase Cloud Messaging</a> singleton that provides methods for subscribing to topics and sending upstream messages. </p>
+    <p>Top level <a href="https://firebase.google.com/docs/cloud-messaging/">Firebase Cloud Messaging</a> singleton that provides methods for generating tokens and subscribing to topics. </p>
     <p>In order to receive messages, declare an implementation of <code><a href="/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessagingService.html">FirebaseMessagingService</a></code> in the app manifest. To process messages, override base class methods to handle any events required by the application.</p>
     <h2>Summary</h2>
     <div class="devsite-table-wrapper">
@@ -96,7 +96,7 @@
             <td>
               <div><code><span><del><a href="/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessaging.html#send(com.google.firebase.messaging.RemoteMessage)">send</a></del></span>(message:&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/messaging/RemoteMessage.html">RemoteMessage</a>)</code></div>
               <p><strong>This function is deprecated.</strong>
-                <p>FCM upstream messaging is deprecated and will be decommissioned in June 2024.</p>
+                <p>FCM upstream messaging is decommissioned.</p>
               </p>
             </td>
           </tr>
@@ -272,7 +272,7 @@
         <h3 class="api-name" id="send(com.google.firebase.messaging.RemoteMessage)">send</h3>
         <pre class="api-signature no-pretty-print">fun&nbsp;<span><del><a href="/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessaging.html#send(com.google.firebase.messaging.RemoteMessage)">send</a></del></span>(message:&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/messaging/RemoteMessage.html">RemoteMessage</a>):&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></pre>
         <aside class="caution"><strong>This function is deprecated.</strong><br>
-          <p>FCM upstream messaging is deprecated and will be decommissioned in June 2024. Learn more in the <a href="https://firebase.google.com/support/faq#fcm-23-deprecation">FAQ about FCM features deprecated in June 2023</a>.</p>
+          <p>FCM upstream messaging is decommissioned. Learn more in the <a href="https://firebase.google.com/support/faq#fcm-23-deprecation">FAQ about FCM features deprecated in June 2023</a>.</p>
         </aside>
         <p>Sends <code>message</code> upstream to your app server. </p>
         <p>When there is an active connection the message will be sent immediately, otherwise the message will be queued up to the time to live (TTL) set in the message.</p>
--- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/messaging/FirebaseMessagingService.html	2024-10-24 20:32:38.431339800 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/messaging/FirebaseMessagingService.html	2024-10-24 20:30:43.350846452 +0000
@@ -43,7 +43,7 @@
     </div>
     <hr>
     <p>Base class for receiving messages from Firebase Cloud Messaging. </p>
-    <p>Extending this class is required to be able to handle downstream messages. It also provides functionality to automatically display notifications, and has methods that are invoked to give the status of upstream messages. </p>
+    <p>Extending this class is required to be able to handle downstream messages. It also provides functionality to automatically display notifications. </p>
     <p>Override base class methods to handle any events required by the application. All methods are invoked on a background thread, and <em>may be called when the app is in the background or not open</em>. </p>
     <p>Include the following in the manifest: </p>
     <pre class="prettyprint">&lt;service
@@ -110,8 +110,10 @@
           <tr>
             <td><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></code></td>
             <td>
-              <div><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/WorkerThread.html">WorkerThread</a><br><a href="/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessagingService.html#onMessageSent(java.lang.String)">onMessageSent</a>(msgId:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>)</code></div>
-              <p>Called when an upstream message has been successfully sent to the GCM connection server.</p>
+              <div><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/WorkerThread.html">WorkerThread</a><br><span><del><a href="/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessagingService.html#onMessageSent(java.lang.String)">onMessageSent</a></del></span>(msgId:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>)</code></div>
+              <p><strong>This function is deprecated.</strong>
+                <p>FCM upstream messaging is decommissioned.</p>
+              </p>
             </td>
           </tr>
           <tr>
@@ -124,8 +126,10 @@
           <tr>
             <td><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></code></td>
             <td>
-              <div><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/WorkerThread.html">WorkerThread</a><br><a href="/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessagingService.html#onSendError(java.lang.String,java.lang.Exception)">onSendError</a>(msgId:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>,&nbsp;exception:&nbsp;<a href="https://developer.android.com/reference/kotlin/java/lang/Exception.html">Exception</a>)</code></div>
-              <p>Called when there was an error sending an upstream message.</p>
+              <div><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/WorkerThread.html">WorkerThread</a><br><span><del><a href="/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessagingService.html#onSendError(java.lang.String,java.lang.Exception)">onSendError</a></del></span>(msgId:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>,&nbsp;exception:&nbsp;<a href="https://developer.android.com/reference/kotlin/java/lang/Exception.html">Exception</a>)</code></div>
+              <p><strong>This function is deprecated.</strong>
+                <p>FCM upstream messaging is decommissioned.</p>
+              </p>
             </td>
           </tr>
         </tbody>
@@ -1996,7 +2000,10 @@
       </div>
       <div class="api-item"><a name="onMessageSent-java.lang.String-"></a><a name="onmessagesent"></a>
         <h3 class="api-name" id="onMessageSent(java.lang.String)">onMessageSent</h3>
-        <pre class="api-signature no-pretty-print">@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/WorkerThread.html">WorkerThread</a><br>fun&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessagingService.html#onMessageSent(java.lang.String)">onMessageSent</a>(msgId:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>):&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></pre>
+        <pre class="api-signature no-pretty-print">@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/WorkerThread.html">WorkerThread</a><br>fun&nbsp;<span><del><a href="/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessagingService.html#onMessageSent(java.lang.String)">onMessageSent</a></del></span>(msgId:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>):&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></pre>
+        <aside class="caution"><strong>This function is deprecated.</strong><br>
+          <p>FCM upstream messaging is decommissioned. Learn more in the <a href="https://firebase.google.com/support/faq#fcm-23-deprecation">FAQ about FCM features deprecated in June 2023</a>.</p>
+        </aside>
         <p>Called when an upstream message has been successfully sent to the GCM connection server.</p>
         <div class="devsite-table-wrapper">
           <table class="responsive">
@@ -2049,7 +2056,10 @@
       </div>
       <div class="api-item"><a name="onSendError(java.lang.String, java.lang.Exception)"></a><a name="onSendError-java.lang.String-java.lang.Exception-"></a><a name="onsenderror"></a>
         <h3 class="api-name" id="onSendError(java.lang.String,java.lang.Exception)">onSendError</h3>
-        <pre class="api-signature no-pretty-print">@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/WorkerThread.html">WorkerThread</a><br>fun&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessagingService.html#onSendError(java.lang.String,java.lang.Exception)">onSendError</a>(msgId:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>,&nbsp;exception:&nbsp;<a href="https://developer.android.com/reference/kotlin/java/lang/Exception.html">Exception</a>):&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></pre>
+        <pre class="api-signature no-pretty-print">@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/WorkerThread.html">WorkerThread</a><br>fun&nbsp;<span><del><a href="/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessagingService.html#onSendError(java.lang.String,java.lang.Exception)">onSendError</a></del></span>(msgId:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>,&nbsp;exception:&nbsp;<a href="https://developer.android.com/reference/kotlin/java/lang/Exception.html">Exception</a>):&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></pre>
+        <aside class="caution"><strong>This function is deprecated.</strong><br>
+          <p>FCM upstream messaging is decommissioned. Learn more in the <a href="https://firebase.google.com/support/faq#fcm-23-deprecation">FAQ about FCM features deprecated in June 2023</a>.</p>
+        </aside>
         <p>Called when there was an error sending an upstream message.</p>
         <div class="devsite-table-wrapper">
           <table class="responsive">
--- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/messaging/RemoteMessage.html	2024-10-24 20:32:38.419339749 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/messaging/RemoteMessage.html	2024-10-24 20:30:43.350846452 +0000
@@ -30,9 +30,8 @@
     </div>
     <hr>
     <p>A remote Firebase Message. </p>
-    <p>Messages will be received via <code><a href="/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessagingService.html#onMessageReceived(com.google.firebase.messaging.RemoteMessage)">onMessageReceived</a></code> and can be sent via <code><a href="/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessaging.html#send(com.google.firebase.messaging.RemoteMessage)">send</a></code>. </p>
+    <p>Messages will be received via <code><a href="/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessagingService.html#onMessageReceived(com.google.firebase.messaging.RemoteMessage)">onMessageReceived</a></code>. </p>
     <p>Messages may have a <code><a href="/docs/reference/kotlin/com/google/firebase/messaging/RemoteMessage.Notification.html">Notification</a></code> instance if they are received while the application is in the foreground, otherwise they will be automatically posted to the notification tray. </p>
-    <p>Use the <code><a href="/docs/reference/kotlin/com/google/firebase/messaging/RemoteMessage.Builder.html">Builder</a></code> class for building message instances to send via <code><a href="/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessaging.html#send(com.google.firebase.messaging.RemoteMessage)">send</a></code>.</p>
     <h2>Summary</h2>
     <div class="devsite-table-wrapper">
       <table class="responsive">
@@ -171,8 +170,10 @@
           <tr>
             <td><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?</code></td>
             <td>
-              <div><code><a href="/docs/reference/kotlin/com/google/firebase/messaging/RemoteMessage.html#getTo()">getTo</a>()</code></div>
-              <p>Gets the message destination.</p>
+              <div><code><span><del><a href="/docs/reference/kotlin/com/google/firebase/messaging/RemoteMessage.html#getTo()">getTo</a></del></span>()</code></div>
+              <p><strong>This function is deprecated.</strong>
+                <p>FCM upstream messaging is decommissioned.</p>
+              </p>
             </td>
           </tr>
           <tr>
@@ -535,12 +536,11 @@
       </div>
       <div class="api-item"><a name="getTo--"></a><a name="getto"></a>
         <h3 class="api-name" id="getTo()">getTo</h3>
-        <pre class="api-signature no-pretty-print">fun&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/messaging/RemoteMessage.html#getTo()">getTo</a>():&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?</pre>
+        <pre class="api-signature no-pretty-print">fun&nbsp;<span><del><a href="/docs/reference/kotlin/com/google/firebase/messaging/RemoteMessage.html#getTo()">getTo</a></del></span>():&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?</pre>
+        <aside class="caution"><strong>This function is deprecated.</strong><br>
+          <p>FCM upstream messaging is decommissioned. Learn more in the <a href="https://firebase.google.com/support/faq#fcm-23-deprecation">FAQ about FCM features deprecated in June 2023</a>.</p>
+        </aside>
         <p>Gets the message destination. </p>
-        <ul>
-          <li>For upstream messages, this will be of the form <code>[email protected]</code>. </li>
-          <li>For downstream messages, this will be the Firebase installations ID (FID). </li>
-        </ul>
       </div>
       <div class="api-item"><a name="getTtl--"></a><a name="getttl"></a>
         <h3 class="api-name" id="getTtl()">getTtl</h3>
--- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/messaging/package-summary.html	2024-10-24 20:32:38.431339800 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/messaging/package-summary.html	2024-10-24 20:30:43.350846452 +0000
@@ -18,7 +18,7 @@
           <tr>
             <td><code><a href="/docs/reference/kotlin/com/google/firebase/messaging/FirebaseMessaging.html">FirebaseMessaging</a></code></td>
             <td>
-              <p>Top level <a href="https://firebase.google.com/docs/cloud-messaging/">Firebase Cloud Messaging</a> singleton that provides methods for subscribing to topics and sending upstream messages.</p>
+              <p>Top level <a href="https://firebase.google.com/docs/cloud-messaging/">Firebase Cloud Messaging</a> singleton that provides methods for generating tokens and subscribing to topics.</p>
             </td>
           </tr>
           <tr>

Copy link
Contributor

Vertex AI Mock Responses Check ⚠️

A newer major version of the mock responses for Vertex AI unit tests is available. update_responses.sh should be updated to clone the latest version of the responses: v5.1

Copy link
Contributor

github-actions bot commented Oct 24, 2024

Test Results

 64 files   -    958   64 suites   - 958   6m 15s ⏱️ - 30m 23s
487 tests  -  5 322  487 ✅  -  5 300  0 💤  - 22  0 ❌ ±0 
980 runs   - 10 723  980 ✅  - 10 679  0 💤  - 44  0 ❌ ±0 

Results for commit dd2b033. ± Comparison against base commit 0697dd3.

This pull request removes 5322 tests.
com.google.android.datatransport.cct.CctBackendFactoryTest ‑ create_returnCCTBackend_WhenBackendNameIsCCT
com.google.android.datatransport.cct.CctDestinationTest ‑ cctDestination_shouldOnlySupportProtoAndJson
com.google.android.datatransport.cct.CctDestinationTest ‑ cctDestination_shouldSupportProtoAndJson
com.google.android.datatransport.cct.CctTransportBackendTest ‑ decorate_whenOffline_shouldProperlyPopulateNetworkInfo
com.google.android.datatransport.cct.CctTransportBackendTest ‑ decorate_whenOnline_shouldProperlyPopulateNetworkInfo
com.google.android.datatransport.cct.CctTransportBackendTest ‑ schedule_shouldAddCookieOnPseudonymousIds
com.google.android.datatransport.cct.CctTransportBackendTest ‑ schedule_shouldDropCookieOnMixedPseudonymousIds
com.google.android.datatransport.cct.CctTransportBackendTest ‑ send_CompressedResponseIsUncompressed
com.google.android.datatransport.cct.CctTransportBackendTest ‑ send_whenBackendRedirectsMoreThan5Times_shouldOnlyRedirect4Times
com.google.android.datatransport.cct.CctTransportBackendTest ‑ send_whenBackendRedirects_shouldCorrectlyFollowTheRedirectViaPost
…

♻️ This comment has been updated with latest results.

* Also removed references to upstream in documentation.
@gsakakihara gsakakihara merged commit d402ad0 into main Nov 4, 2024
33 checks passed
@gsakakihara gsakakihara deleted the gsakakihara/deprecate_upstream branch November 4, 2024 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants