$url = \'https://fcm.googleapis.com/v1/projects/{$project_id}/messages:send\';`对于此 firebase api,我收到以下错误代码\':403,\'message\':\'Permission'
$url = "https://fcm.googleapis.com/v1/projects/{$project_id}/messages:send"; `
对于这个 firebase api 我得到了以下错误
code\':403,\'message\':\'资源“//cloudresourcemanager.googleapis.com/projects/restaurant-b6abd”上的权限“cloudmessaging.messages.create”(或者可能不存在)。\',\'status\':\'PERMISSION_DENIED\',\'details\':[{\'@type\':\'type.googleapis.com/google.rpc.ErrorInfo\',\'reason\':\'IAM_PERMISSION_DENIED\',\'domain\':\'cloudresourcemanager.googleapis.com\',\'metadata\':{\'resource\':\'projects/restaurant-b6abd\',\'permission\':\'cloudmessaging.messages.create\'}
如果有人能理解,请提供解决方案。