Sorry i was not explaining carefully at first :
- Server worker is hosted on https server over nginx.
- It is working and fetching appcache
- When i wanted to notify things , i do via
self.registration.showNotification("hi there") it dosetn't work ,
- Permission is already granted , notification permission is active.
-  normal new Notification("hi there") outside of SW context work fine.
- The same page works perfectly well in Chrome for Android.

Crosswalk suppose to have all functionality (except Propriety ) of chrome
for android , or more right ? If not what is the purpose of using XWalk .

On  Fri, Jan 6, 2017 at 3:41 PM Balestrieri, Francesco <
[email protected]> wrote:

> Service Worker only works for pages served over HTTPS. See
> https://crosswalk-project.org/jira/browse/XWALK-5919
>
>
>
> *From: *Crosswalk-help <[email protected]>
> on behalf of Phyo Arkar <[email protected]>
> *Date: *Friday, 6 January 2017 at 10.15
> *To: *"[email protected]" <
> [email protected]>
> *Subject: *Re: [Crosswalk-help] Service worker based Notifications not
> working
>
>
>
> It is working well in Chrome for android 50+
>
>
>
> On Fri, Jan 6, 2017 at 2:41 PM Phyo Arkar <[email protected]>
> wrote:
>
> Is that a bug ?
>
>
>
> On Fri, Jan 6, 2017 at 2:40 PM Phyo Arkar <[email protected]>
> wrote:
>
> Tested with latest cordova-crosswalk-webview-plugin and crosswalk android
> .
>
>
>
> Destkop Notification works for android
>
>
>
> var noti = new Notificaiton ("hello world")
>
>
>
> Service Worker Notificaitons dosen't do anything (no Error at all)
>
>
>
>         self.registration.showNotification("New Question from " +
> data.user, {
>
>           body: data.message,
>
>           tag: "new-quest",
>
>           renotify: true,
>
>           vibrate: [200, 100, 200,200,200]
>
>         })
>
>
>
> It returns a promise and the promise is resolved but it does nothing , no
> notification showed.
>
>
>
> ---------------------------------------------------------------------
> Intel Finland Oy
> Registered Address: PL 281, 00181 Helsinki
> Business Identity Code: 0357606 - 4
> Domiciled in Helsinki
>
> This e-mail and any attachments may contain confidential material for
> the sole use of the intended recipient(s). Any review or distribution
> by others is strictly prohibited. If you are not the intended
> recipient, please contact the sender and delete all copies.
>
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to