Skip to content

Commit

Permalink
Merge pull request #245 from ant-media/firebase-cloud-messaging
Browse files Browse the repository at this point in the history
Support saving Firebase private key
  • Loading branch information
mekya committed Feb 8, 2024
2 parents 2dd440f + 6bcce6c commit 38e92ca
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/app.page/app.definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ export class AppSettings {
public lLHLSEnabled: boolean,
public deleteDASHFilesOnEnded: boolean,
public timeTokenSecretForPlay: string,
public timeTokenSecretForPublish: string
public timeTokenSecretForPublish: string,
public firebaseAccountKeyJSON: string,

) {}
}
Expand Down
34 changes: 34 additions & 0 deletions src/app/app.page/app.page.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2196,6 +2196,40 @@ <h4 class="card-title text-left" i18n="@@newLiveStreamCardTitle">
</div>
</div>
</div>

<div class="card-header">
<legend class="text-left" i18n="@@Security">
Push Notification
</legend>
</div>
<div class="card-content text-left">
<div class="form-group">
<div class="col-xs-12" style="margin-top:12px">
<div >


<label for="fcmPrivateKeyJSON">
Firebase Cloud Messaging Private Key JSON
</label>
</div>
</div>

<div class="col-xs-12">

<div>
<textarea name="fcmPrivateKeyJSON"
(keydown.enter)="false"
[(ngModel)]="appSettings.firebaseAccountKeyJSON"
type="textarea" class="form-control"
placeholder="Copy and paste your Private Key JSON content"
rows="3">{{appSettings.firebaseAccountKeyJSON}}
</textarea>
</div>
</div>

</div>
</div>

</div>

<div class="col-sm-12 col-md-12">
Expand Down

0 comments on commit 38e92ca

Please sign in to comment.