I am trying to implement Google Smart Home Request Sync. Is it normal, that I have to say sync devices once I change the name of the device? Is there a way to force it without saying so? Here is my code:
exports.adduser = functions.https.onRequest(async (request, response) => {
app.requestSync(request.body.token).then((res) => {
firebaseRef.child('devices/' + request.body.token).set([request.body.id,]);
response.status(200).json({ 'status': 'OK' });
}).catch((res) => {
response.status(500).json({ 'status': 'FAILED' });
});
});