Table of Contents

Class PushSubscriptionOptions

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The PushSubscriptionOptions interface of the 'Push API' represents the options associated with a push subscription.

[Value("PushSubscriptionOptions")]
public class PushSubscriptionOptions
Inheritance
PushSubscriptionOptions
Inherited Members

Remarks

The read-only PushSubscriptionOptions object is returned by calling Options on a PushSubscription. This interface has no constructor of its own.

See also on MDN

Constructors

PushSubscriptionOptions()

public PushSubscriptionOptions()

Properties

ApplicationServerKey

The applicationServerKey read-only property of the PushSubscriptionOptions interface contains the public key used by the push server.

[Value("applicationServerKey")]
public ArrayBuffer? ApplicationServerKey { get; }

Property Value

ArrayBuffer

A public key your push server uses to send messages to client apps via a push server. This value is part of a signing key pair generated by your application server, and usable with elliptic curve digital signature (ECDSA), over the P-256 curve. If no applicationServerKey member is passed when initialized, it will be set to null.

Remarks

UserVisibleOnly

The userVisibleOnly read-only property of the PushSubscriptionOptions interface indicates if the returned push subscription will only be used for messages whose effect is made visible to the user.

[Value("userVisibleOnly")]
public bool UserVisibleOnly { get; }

Property Value

bool

A boolean value that indicates whether the returned push subscription will only be used for messages whose effect is made visible to the user.

Remarks