[aerogear-dev] cordova push plugin simplification
Matthias Wessendorf
matzew at apache.org
Tue Mar 11 05:41:34 EDT 2014
On Fri, Feb 28, 2014 at 2:59 PM, Erik Jan de Wit <edewit at redhat.com> wrote:
Of course we still can make it look like that, this is the same example but
> then without everything inlined still our average user will have to get
> used that we are referencing function 'pointers' here
>
> var pushConfig = {
> pushServerURL: "<pushServerURL e.g http(s)//host:port/context >",
> alias: "<alias e.g. a username or an email address optional>",
> android: {
> senderID: "<senderID e.g Google Project ID only for android>",
> variantID: "<variantID e.g. 1234456-234320>",
> variantSecret: "<variantSecret e.g. 1234456-234320>"
> },
> ios: {
> variantID: "<variantID e.g. 1234456-234320>",
> variantSecret: "<variantSecret e.g. 1234456-234320>"
> }
> };
>
> push.register(onNotification, errorHandler, pushConfig);
>
> function onNotification(event) {
> alert(event.alert);
> }
>
> function errorHandler(error) {
> throw error;
> }
>
>
>
This is the last version of the API ?
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
--
Matthias Wessendorf
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20140311/46a0cbf1/attachment.html
More information about the aerogear-dev
mailing list