php-fcm
php-fcm copied to clipboard
No API/function retrieve a existing notification_key
I accidentally missed to store the notification_key after creating a device group. But when try to create same group with same device , i get below error
{
"error": {
"code": 400,
"message": "Client error: `POST https://android.googleapis.com/gcm/notification` resulted in a `400 Bad Request` response:\n{\"error\":\"notification_key already exists\"}\n"
}
}
Please support for getting existing notification key by passing group name https://android.googleapis.com/gcm/notification?notification_key_name=the_name
I dont want to stop using library due to this one func,all my implementation is already done :(
@EdwinHoksberg
any plans for this enhancement ??
Also if we can handle if there is no device in group , the notification key gets deleted.
Hi, I was kinda busy with different things, sorry for the late reply! I want to implement this soon so it should be ready in a few days, but I would also accept PR's for this 😉
@bhullar89 - we have some new developers on the project now. We will see about adding your request to the list.