Skip to content

Commit

Permalink
Downgrade firebase-messaging
Browse files Browse the repository at this point in the history
use NC specific user agent for Push

Signed-off-by: tobiasKaminsky <[email protected]>
  • Loading branch information
tobiasKaminsky authored and AndyScherzinger committed Dec 22, 2020
1 parent 1c4e5dd commit fd30675
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion gplay.gradle
Original file line number Diff line number Diff line change
@@ -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"
}
3 changes: 2 additions & 1 deletion src/gplay/java/com/owncloud/android/utils/PushUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@ public static void pushRegistrationToServer(final UserAccountManager accountMana
context.getResources().getString(R.string.push_server_url),
token, pushResponse.getDeviceIdentifier(),
pushResponse.getSignature(),
pushResponse.getPublicKey())
pushResponse.getPublicKey(),
MainApp.getUserAgent())
.run();

if (resultProxy.isSuccess()) {
Expand Down

0 comments on commit fd30675

Please sign in to comment.