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

liked song added in firestore #464

Closed
wants to merge 1 commit into from

Conversation

Varsani2520
Copy link
Contributor

Description

A clear and concise description of what the PR does.
user click on liked icon then that song store in firebase firestore

  • This PR does the following:
    • Adds ...
    • Fixes ...
    • Updates ...

Related Issues

Link any related issues using the format Fixes #450.
This helps to automatically close related issues when the PR is merged.

Changes

List the detailed changes made in this PR.

  • Added a new feature to ...
  • Refactored the ...
  • Fixed a bug in ...

Testing Instructions

Detailed instructions on how to test the changes. Include any setup needed and specific test cases.

  1. Pull this branch.
  2. Run npm install to install dependencies.
  3. Run npm test to execute the test suite.
  4. Verify that ...

Screenshots (if applicable)

Add any screenshots that help explain or visualize the changes.

Additional Context

Any additional context or information that reviewers should be aware of.

  • This PR is based on the following...

Checklist

Make sure to check off all the items before submitting. Mark with [x] if done.

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I am working on this issue under GSSOC

@Varsani2520
Copy link
Contributor Author

@Satyam1923 , i store liked song in firebase but i have no permission so come error can you please help me :

rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}
}

@Varsani2520
Copy link
Contributor Author

set permission in firestore

@Varsani2520
Copy link
Contributor Author

@Satyam1923 , i already do that you only set permission on your database

if you do that then automatically store in liked song in your database

@Varsani2520
Copy link
Contributor Author

Hey @Satyam1923 ,i need a help

@Varsani2520
Copy link
Contributor Author

@Satyam1923

i already completed my task please allow permission in firestore so i can add data inside db
allow read/write permission

@Varsani2520
Copy link
Contributor Author

please put this code in your firestore permissions

service cloud.firestore { match /databases/liked-songs/documents { match /{document=**} { // Allow read and write access to all users allow read, write: if true; } } }

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.

None yet

1 participant