Firebase Issue with One Signal

I have received following warning from Firebase. I have integrated it with one signal and prepared it in test mode as per tutorials from youtube.

“Client access to your Realtime Database will expire in 5 days.”

What changes do I need to make?

You will not be able to access the database from an app. You will have to change your security rules.

What changes do I need to make, without disturbing functioning of my app?

Do your rules have a date as comments?


If you wish to keep your rules to read and write as true, remove the comments and run the rules again.

It is showing like this, shall i update dates only?

2021-04-29_145855

keep only read and write, remove now<… in both places
The dates are the comments and don’t affect the rules

I removed inverted commas as well aslong with now<…

2021-04-29_150555

image

remove it

  1. error is in third line, your suggestion is for line 4.
  2. even if i try to remove it, it does not work, backspace key is skipping it, dont know how

Sorry, my bad!
I forgot the true.

Write your rules like this -

{
  "rules": {
    ".read": "true",  
    ".write": "true",  
  }
}

yeah, it is fine now. but dont know its impact on app :pensive:

Read this article -
It will give you an idea of what rules are the best.

https://firebase.google.com/docs/database/security

Now I have started receiving same emails for “Cloud Firestone”.

Have you configured it too?

Here coding is differnt , kindly guide me, how to do it
2021-05-03_003230

You can change this date -
image

Or
change the rules to -

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

Reference link

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.