Braze JavaScript SDK
Preparing search index...
PushManager
Interface PushManager
interface
PushManager
{
isPushBlocked
()
:
boolean
|
undefined
;
isPushPermissionGranted
()
:
boolean
|
undefined
;
isPushSupported
()
:
boolean
|
undefined
;
registerPush
(
successCallback
?:
(
endpoint
:
string
,
publicKey
:
string
,
userAuth
:
string
,
)
=>
void
,
deniedCallback
?:
(
temporaryDenial
:
boolean
)
=>
void
,
)
:
void
;
unregisterPush
(
successCallback
?:
()
=>
void
,
errorCallback
?:
()
=>
void
,
)
:
void
;
}
Index
Methods
is
Push
Blocked
is
Push
Permission
Granted
is
Push
Supported
register
Push
unregister
Push
Methods
is
Push
Blocked
isPushBlocked
()
:
boolean
|
undefined
Returns
boolean
|
undefined
is
Push
Permission
Granted
isPushPermissionGranted
()
:
boolean
|
undefined
Returns
boolean
|
undefined
is
Push
Supported
isPushSupported
()
:
boolean
|
undefined
Returns
boolean
|
undefined
register
Push
registerPush
(
successCallback
?:
(
endpoint
:
string
,
publicKey
:
string
,
userAuth
:
string
,
)
=>
void
,
deniedCallback
?:
(
temporaryDenial
:
boolean
)
=>
void
,
)
:
void
Parameters
Optional
successCallback
:
(
endpoint
:
string
,
publicKey
:
string
,
userAuth
:
string
)
=>
void
Optional
deniedCallback
:
(
temporaryDenial
:
boolean
)
=>
void
Returns
void
unregister
Push
unregisterPush
(
successCallback
?:
()
=>
void
,
errorCallback
?:
()
=>
void
)
:
void
Parameters
Optional
successCallback
:
()
=>
void
Optional
errorCallback
:
()
=>
void
Returns
void
Braze JavaScript SDK - v0.3.1
Loading...