I am finishing a custom component that integrates with Notifo and I wanted to use web push notifications however I don’t know what should be the applicationServerKey.
I tried to look into you component but I didn’t figured out from where the applicationServerKey comes.
I am using Blazor and I am trying to re-write the most in c#.
I saw that you have this method
export async function apiPostWebPush(config: SDKConfig, subscription: PushSubscription) {
const url = combineUrl(config.apiUrl, ‘api/me/webpush’);
const response = await fetch(url, {
method: 'POST',
headers: {
...getAuthHeader(config),
'Content-Type': 'text/json',
},
body: JSON.stringify({ subscription }),
});
if (!response.ok) {
throw new Error(`Request failed with ${response.status}`);
}
}
This function is handling the registration of the subscription in Notifo.
When I started the component development I mapped a few properties that I thought I would need but I didn’t came across the publicKey, witch enpoint retrives the pulicKey?