Skip to content

VCST-1334: Use Firebase Cloud Messaging (FCM) #6

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

Merged
merged 15 commits into from
Jun 13, 2024
Merged

Conversation

artem-dudarev
Copy link
Contributor

@artem-dudarev artem-dudarev commented Jun 3, 2024

Description

appSettings.json

"PushMessages": {
  "UseFirebaseCloudMessaging": true,
  "FcmSenderOptions": {
    "Type": "string",
    "ProjectId": "string",
    "PrivateKeyId": "string",
    "PrivateKey": "string",
    "ClientEmail": "string",
    "ClientId": "string",
    "AuthUri": "string",
    "TokenUri": "string",
    "AuthProviderX509CertUrl": "string",
    "ClientX509CertUrl": "string",
    "UniverseDomain": "string"
  },
  "FcmReceiverOptions": {
    "ApiKey": "string",
    "AuthDomain": "string",
    "ProjectId": "string",
    "StorageBucket": "string",
    "MessagingSenderId": "string",
    "AppId": "string",
    "VapidKey": "string"
  }
},

environments.yml

- name: string
  platform:
    config:
      PushMessages__UseFirebaseCloudMessaging: true
      PushMessages__FcmSenderOptions__Type: string
      PushMessages__FcmSenderOptions__ProjectId: string
      PushMessages__FcmSenderOptions__PrivateKeyId: string
      PushMessages__FcmSenderOptions__ClientEmail: string
      PushMessages__FcmSenderOptions__ClientId: string
      PushMessages__FcmSenderOptions__AuthUri: string
      PushMessages__FcmSenderOptions__TokenUri: string
      PushMessages__FcmSenderOptions__AuthProviderX509CertUrl: string
      PushMessages__FcmSenderOptions__ClientX509CertUrl: string
      PushMessages__FcmSenderOptions__UniverseDomain: string
      PushMessages__FcmReceiverOptions__ApiKey: string
      PushMessages__FcmReceiverOptions__AuthDomain: string
      PushMessages__FcmReceiverOptions__ProjectId: string
      PushMessages__FcmReceiverOptions__StorageBucket: string
      PushMessages__FcmReceiverOptions__MessagingSenderId: string
      PushMessages__FcmReceiverOptions__AppId: string
      PushMessages__FcmReceiverOptions__VapidKey: string
    secretConfig:
      PushMessages__FcmSenderOptions__PrivateKey: fcm-private-key

GraphQL

query {
  fcmSettings {
    apiKey
    authDomain
    projectId
    storageBucket
    messagingSenderId
    appId
    vapidKey
  }
}
mutation {
  addFcmToken(command: { token: "qwerty" })
}
mutation {
  deleteFcmToken(command: { token: "qwerty" })
}

References

QA-test:

Jira-link:

https://virtocommerce.atlassian.net/browse/VCST-1334

Artifact URL:

https://vc3prerelease.blob.core.windows.net/packages/VirtoCommerce.PushMessages_3.808.0-pr-6-aa0c.zip

@artem-dudarev artem-dudarev marked this pull request as draft June 3, 2024 11:05
Base automatically changed from VCST-1256 to dev June 4, 2024 12:06
@artem-dudarev artem-dudarev marked this pull request as ready for review June 4, 2024 19:55
Copy link

sonarqubecloud bot commented Jun 6, 2024

@artem-dudarev artem-dudarev merged commit c6d2be9 into dev Jun 13, 2024
@artem-dudarev artem-dudarev deleted the VCST-1334 branch June 13, 2024 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant