Pārlūkot izejas kodu

Merge pull request #7619 from nextcloud/proxyWithUA

Fix Push notifications
Andy Scherzinger 4 gadi atpakaļ
vecāks
revīzija
00e1af0b7a

+ 2 - 1
gplay.gradle

@@ -1,3 +1,4 @@
 dependencies {
-    implementation "com.google.firebase:firebase-messaging:20.2.4"
+    // upon each update first test: new registration, receive push
+    implementation "com.google.firebase:firebase-messaging:20.1.3"
 }

+ 2 - 1
src/gplay/java/com/owncloud/android/utils/PushUtils.java

@@ -242,7 +242,8 @@ public final class PushUtils {
                                     context.getResources().getString(R.string.push_server_url),
                                     token, pushResponse.getDeviceIdentifier(),
                                     pushResponse.getSignature(),
-                                    pushResponse.getPublicKey())
+                                    pushResponse.getPublicKey(),
+                                    MainApp.getUserAgent())
                                     .run();
 
                                 if (resultProxy.isSuccess()) {