Few updates to the app!

Hello recently we have made few updates to push notification feature … so in order to re-enable the push notifications please follow these steps !

… to enable the push notification you need to make few changes on server side … follow the following instructions

rm firebase_admin_sdk_key.json
touch firebase_admin_sdk_key.json
nano firebase_admin_sdk_key.json

copy and paste the contents of above key to new file and save it

then update the database_url in api_config.properties file to

database_url = https://nearby-shops-9fae2.firebaseio.com

{
“type”: “service_account”,
“project_id”: “nearby-shops-9fae2”,
“private_key_id”: “d49dfe4f2b8211bf94c8e5714ca0cc424be3736a”,
“private_key”: “-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQD4Df/h3udROs8b\n09371MAYdO0AuPfgLAXYHKeQ4p23aAtzf5LGGaG8e1ormRoY9Rct2KQ3wIz30WNv\nUm0OF3GL3iZIOW/0PayPfaM4XRqpwS4KPEi1FNSQvGqjwA/iMpkHDZGU9/Fh+MTG\nPmnaTR/pzD1sej2N7rGv4hy8usfamk/aAhAGL75UWYku4WQJT033Ui0xX2e0Yotd\nPX96OdH2PZ7ZWrSENRWAEchdu5LvsQqB6SP6T8jSG6AUNTq+ogwF2Kr+NO2nJy4R\ng4pnk9yvxp29GW8t6sdH8u70hF51N0phiU2Lmf/NF3pT+jkZfWwO3XZrgpWj3Wrk\n6ynjYZctAgMBAAECggEAHACGk5K0dbrIEQnijBB5C/m9HIEE+HE3yqz3bJdsev0b\nl9L9uG/BzpN1Oyk6JTmbv4Dujt2lfD9OtI0vQvE6D/JIy4vyW7XPolYqRA1cmm+0\nmRKzmX+LvHgMqMYgdOZF2KI7PkAcJ3VsDz4R+IMO2HeGMpX9F2Xr+KEzocmLEJ30\ngVZDEN5sv47DDekySVT0ByWrZ/JuUjlWIdjCKffYgyRNdTXhUObmYuMSLWlih71n\nC8qbuhxlBUtoBR3LIE0lB/gBeZ2LbSbBJQKj4yhUUF9QD0pRS8uHRMlTc3BnSnqz\nXa2aZveNjM7JnRl/RO7QVaskOUsMQ8goa8DXwYNvGQKBgQD//FMoyDg8WfnNh8o9\ngiTpaj6UhJrEeq2iRsV3KyonNWSZNOI5Qeu/ivBQVLlyuNPLE+wt7ZCArP/BKEm1\nFKJbIeYxXBk+M7/z/t4oAVlNS4cFtRUKvv6gqA5mcP4RhDf3HfwBidhAVm/lpsqm\nlGVzERm+fTiO2TgiQ8qV9Ej1eQKBgQD4EY+S5uOmfAwp1tnT2jIAaDwsybx87pz6\noAKSrXCf6heN8T4UaOMVT0OIeNwQljtZSduEVC4wFLE/rcVu8a1/dNhTdlFRdn5x\nl6zafJMcD+z7amNxct1Ws/EV+mGsmJ9F9prm028UzrLHCT4gmfBef8bRtBhemh4v\n/JT4/xFGVQKBgQCiGwoWg2SJY3k73MgH14jEf9GNf8P6tK2MXEDkTGNvXPKNyt2P\n4N0H+VZhqKWfrsgAjGc+Vnjx45w6l+bFU4HVMExz6ZzatS7Ttwy8TM5eknu484mV\nuonI92PXH6rlMNO4HDbgSoi1hYdq6QrgHo14JtYkuWu9mnVfzYpXF9G0EQKBgQCy\ne2gSqP8oPN4/iC8nxzjspBKPowJz3PajOFdBk3qSBEq4PNeOtbyVC3eqjFLBuGWx\nI3vGpQ6qV2kESRHhdg9/weEXg+yUMS5eqmOau8DYkvjOF8i+yodIJ6WRS5nVJeaK\n3xiqdXvZu7JTlGnX6QpR45t4LBzQjBCmNBQ3ZsXWFQKBgHhCEaz9JEd+pngJDoxA\nnokov/wPYMqVUShjkZvR2YUJ8CHGUzvyaCEi2VtVbvSzNkVzizE1kjMCwPckPDB7\nGcsKJzUJLniLq1B5hbDew56E74pdY15NAsH18cuImKx+eZEQEc0H5x/8KOkviilw\nNziw6SnwSdi+7FoTMHHg+z1Q\n-----END PRIVATE KEY-----\n”,
“client_email”: “firebase-adminsdk-w7u1a@nearby-shops-9fae2.iam.gserviceaccount.com”,
“client_id”: “107112118856533374227”,
“auth_uri”: “https://accounts.google.com/o/oauth2/auth”,
“token_uri”: “https://oauth2.googleapis.com/token”,
“auth_provider_x509_cert_url”: “https://www.googleapis.com/oauth2/v1/certs”,
“client_x509_cert_url”: “https://www.googleapis.com/robot/v1/metadata/x509/firebase-adminsdk-w7u1a%40nearby-shops-9fae2.iam.gserviceaccount.com
}

1 Like

this is the new key that you need to paste into the firebase sdk admin key.json file

after this … update your google-services.json in android studio and change package in google-services.json to your custom package name and then your android app would be up to date !

Okey , the order is fixed , thanks

1 Like

can we use own firebase also?

Sure you can use … but in that case if a customer comes from our unified platform … he will not get any notifications !

I mean its upto you entirely !

I did not get that. What kind of notifications?

Push notifications … In android app !