Node Js value not showing in notification when testing
Node Js value not showing in notification when testing I am making a notification using firebase cloud functions with node js and my app made on swift this is my payload var payload = { notification: { title: (goOfflineTimePeriod,"Inactive for minutes you are now offline"), body: "Time period for inactive log off can be changed in your settings" though my notification my notification only shows as; "Inactive for minutes you are now offline", "Time period for inactive log off can be changed in your settings" so the variable; goOfflineTimePeriod does not show in the notification I am only new to node js is there a reason why "goOfflineTimePeriod" does not show in the notification? here is my full node js function code; exports.goOfflineAlert = functions.firestore .document('/goneOffline/{uid}') .onCreate((snap, context) => { var db = admin.firestore(); var uid = context.params.uid; const newValu...