Open yoviprasetyo opened 3 years ago
Hey,
Have been facing the same issue? Any luck?
Okay, small update.
There's a bug that will not apply the default value "aesgcm" if not provided.
To by-pass this you can:
auth('api')->user()->updatePushSubscription($sub['endpoint'], null, null, "aesgcm");
I don't think this looks good unless you're on PHP 8.x and can make use of named parameters.
Hi,
I develop Laravel App with your packages.
This is my route
That route is to save the JSON I just save the
endpoint
and don't care for the rest. I use$user->updatePushSubscription($request->endpoint);
to save it. Saved to DB.But, when I try to notify the User, I got this error.
I ever see your code that the available value is
aesgcm
andaes128gcm
. But it only return null and no notification occured.How to solve this error?