php-fcm icon indicating copy to clipboard operation
php-fcm copied to clipboard

No API/function retrieve a existing notification_key

Open bhullar89 opened this issue 6 years ago • 3 comments

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 :(

bhullar89 avatar Oct 12 '18 14:10 bhullar89

@EdwinHoksberg
any plans for this enhancement ?? Also if we can handle if there is no device in group , the notification key gets deleted.

bhullar89 avatar Oct 23 '18 13:10 bhullar89

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 😉

EdwinHoksberg avatar Oct 23 '18 13:10 EdwinHoksberg

@bhullar89 - we have some new developers on the project now. We will see about adding your request to the list.

rolinger avatar Jan 27 '20 15:01 rolinger