NewTaxi iOS App Configuration Instructions
NewTaxi iOS App Configuration Instructions
Note:
1. 1.
Updating Appname
● Get FCM Key used to push notification into different types of Web Application, Mobile
Application.
● Follow the link to create FCM https://console.firebase.google.com
● Create the project and create both driver and rider app
● Update the Firebase RealTime Database Rules.
● Click setting in selected app
● Download the GoogleService-Info.plist from firebase console
Note: Use same FCM key in web, android and iOS also.
Update Rules like below :
"rules": {
"live": {
"live_tracking": {
"uid": {
},
},
"Notification": {
"$user_id": {
"uid": {
},
},
"driver_rider_trip_chats": {
"$trip_id": {
"uid": {
},
}
},
"trip": {
"$trip_id": {
"uid": {
},
},
"trip_request": {
"$trip_id": {
"uid": {
},
},
"GeoFire": {
"$trip_id": {
"uid": {
},
},
"demo": {
"live_tracking": {
"$trip_id": {
"uid": {
},
},
"Notification": {
"$user_id": {
"uid": {
".validate": "(data.exists() && data.val() == newData.val()) || newData.val() == auth.uid"
},
},
"driver_rider_trip_chats": {
"$trip_id": {
"uid": {
},
},
"trip": {
"$trip_id": {
"uid": {
},
},
"trip_request": {
".read": "auth.uid != null",
"$trip_id": {
"uid": {
},
},
"GeoFire": {
".indexOn": "g",
"$trip_id": {
"uid": {
},
4. Your push notification certificates are now uploaded and ready for use.
5. In Project set “deploymentEnvironment” to “. live” for production.