new SimplePushClient(options) → {Object}
Status: Experimental
The SimplePushClient object is used as a sort of polyfill/implementation of the SimplePush spec implemented in Firefox OS and the Firefox browser and provides a mechanism for subscribing to and acting on push notifications in a web application. See https://wiki.mozilla.org/WebAPI/SimplePush
Parameters:
Name | Type | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | an object used to initialize the connection to the SimplePush server
Properties
|
- Source:
Returns:
The created unified push server client
- Type
- Object
Example
// Create the SimplePushClient object:
var client = AeroGear.SimplePushClient({
simplePushServerURL: "https://localhost:7777/simplepush",
onConnect: myConnectCallback,
onClose: myCloseCallback
});