cordova fcm The "chunk" argument must be of type string or an instance of Buffer or Uint8Array

에러코드 fcm The "chunk" argument must be of type string or an instance of Buffer or Uint8Array

 

 

 

 

해결방법

 

// change
var strings = fs.readFileSync("platforms/android/res/values/strings.xml").toString();
// to
var strings = fs.readFileSync("platforms/android/app/src/main/res/values/strings.xml").toString();

// AND

//change
fs.writeFileSync("platforms/android/res/values/strings.xml", strings);

//to
fs.writeFileSync("platforms/android/app/src/main/res/values/strings.xml", strings);

참조 : https://stackoverflow.com/questions/56328069/the-chunk-argument-must-be-one-of-type-string-or-buffer-received-type-object/56330922#56330922

 

댓글

Designed by JB FACTORY