<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><h3 style="box-sizing: border-box; margin-bottom: 15px; line-height: 1.7; margin-right: 0px; margin-left: 0px; padding: 0px; cursor: text; position: relative; color: rgb(51, 51, 51); font-family: Helvetica, arial, freesans, clean, sans-serif; margin-top: 0px !important;"><span style="font-weight: normal;">so this sort of relates to this thread here:</span></h3><h3 style="box-sizing: border-box; margin-bottom: 15px; line-height: 1.7; margin-right: 0px; margin-left: 0px; padding: 0px; cursor: text; position: relative; color: rgb(51, 51, 51); font-family: Helvetica, arial, freesans, clean, sans-serif; margin-top: 0px !important;"><a href="http://aerogear-dev.1069024.n5.nabble.com/aerogear-dev-Differences-between-Firefox-OS-quot-native-quot-Push-lib-and-AeroGear-s-Push-adapter-td6195.html">http://aerogear-dev.1069024.n5.nabble.com/aerogear-dev-Differences-between-Firefox-OS-quot-native-quot-Push-lib-and-AeroGear-s-Push-adapter-td6195.html</a></h3><h3 style="box-sizing: border-box; margin-bottom: 15px; line-height: 1.7; font-size: 1.5em; margin-right: 0px; margin-left: 0px; padding: 0px; cursor: text; position: relative; color: rgb(51, 51, 51); font-family: Helvetica, arial, freesans, clean, sans-serif; margin-top: 0px !important;"><span style="font-size: 15px; line-height: 25.5px;"><br></span></h3><h3 style="box-sizing: border-box; margin-bottom: 15px; line-height: 1.7; font-size: 1.5em; margin-right: 0px; margin-left: 0px; padding: 0px; cursor: text; position: relative; color: rgb(51, 51, 51); font-family: Helvetica, arial, freesans, clean, sans-serif; margin-top: 0px !important;"><span style="font-size: 15px; line-height: 25.5px;"><br>from</span><span style="font-size: 15px; line-height: 25.5px;">&nbsp;</span><a href="https://developer.mozilla.org/en-US/docs/Web/API/Simple_Push_API#Add_the_push_message_handler" rel="noreferrer" style="font-size: 15px; line-height: 25.5px; box-sizing: border-box; color: rgb(65, 131, 196); text-decoration: none;">https://developer.mozilla.org/en-US/docs/Web/API/Simple_Push_API#Add_the_push_message_handler</a><br class="Apple-interchange-newline">Moz example</h3><pre style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 13px; margin-top: 15px; margin-bottom: 15px; border: 1px solid rgb(221, 221, 221); line-height: 19px; overflow: auto; padding: 6px 10px; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-wrap: normal; color: rgb(51, 51, 51); background-color: rgb(248, 248, 248);"><code style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px; margin: 0px; border: none; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; padding: 0px; word-wrap: normal; display: inline; line-height: inherit; background-color: transparent; background-position: initial initial; background-repeat: initial initial;">window.navigator.mozSetMessageHandler('push', function(e) {
    console.log('My endpoint is ' + e.pushEndpoint);
    console.log('My new version is ' +  e.version);
    //Remember that you can handle here if you have more than
    //one pushEndpoint
    if (e.pushEndpoint === emailEndpoint) {
        emailHandler(e.version);
    } else if (e.pushEndpoint === imEndpoint) {
        imHandler(e.version);
    }
});
</code></pre><p style="box-sizing: border-box; margin: 15px 0px; color: rgb(51, 51, 51); font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 15px; line-height: 25.5px;">The notification that they send back includes the pushEndpoint and the version</p><p style="box-sizing: border-box; margin: 15px 0px; color: rgb(51, 51, 51); font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 15px; line-height: 25.5px;">Currently, when we do&nbsp;<code style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px; margin: 0px; border: 1px solid rgb(221, 221, 221); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; padding: 0px; background-color: rgb(248, 248, 248);">navigator.push.register()</code>&nbsp;the result we send back is an object that includes the pushEndpoint, this is actually changing to be more in line with Mozilla. Instead of the object being sent back, we will send back the pushEndpoint as a String. &lt;--- is a super easy change that sebi already did, just need to re-merge it back in</p><p style="box-sizing: border-box; margin: 15px 0px; color: rgb(51, 51, 51); font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 15px; line-height: 25.5px;">but in our message handler, our notification that is sent back includes the channelId and version</p><p style="box-sizing: border-box; margin: 15px 0px; color: rgb(51, 51, 51); font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 15px; line-height: 25.5px;">I believe the server should now be sending the pushEndpoint in the notification instead.</p><p style="box-sizing: border-box; margin: 15px 0px; color: rgb(51, 51, 51); font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 15px; line-height: 25.5px;">I'd do it myself, but you know, it's java</p></body></html>