mobile-toolkit | Tools for building progressive web apps with Angular | Frontend Framework library
kandi X-RAY | mobile-toolkit Summary
kandi X-RAY | mobile-toolkit Summary
This repo is a series of tools and guides to help build Progressive Web Apps. All guides are currently based on Angular CLI, and all tools should be considered alpha quality. In the future, more guides and recipes to cover different tools and use cases will be added here and on mobile.angular.io.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mobile-toolkit
mobile-toolkit Key Features
mobile-toolkit Examples and Code Snippets
Community Discussions
Trending Discussions on mobile-toolkit
QUESTION
I'm building a PWA using the latest version of Angular.
I'm making use of the Angular Mobile Toolkit and I want to send Local Notifications using angular/service-worker. But I can't make it work.
I'm able to subscribe and send notification from a server, but I would like to send a notification from my app itself. I tried using angular2-notifications, it works well on a desktop, but the constructor
...ANSWER
Answered 2017-Jul-21 at 11:15Chrome on Android is not compatible with the Notification API from HTML5, so you won't be able to send local notifications
.
As far as I can see in the @angular/service-worker
source code, for displaying notifications, they are using following method:
this.worker.showNotification(desc['title'], options);
this.worker
is an object of type VersionWorker
.
So probably there is some way to reuse this.worker
for your use.
Full code of Push plugin written by Angular team, can be found here: https://github.com/angular/mobile-toolkit/blob/master/service-worker/worker/src/plugins/push/index.ts
Example repo for service-worker plugin can be found here: https://github.com/maciejtreder/ng-http-sw-proxy (catalog plugin
).
QUESTION
I have an angular2 app that was crated a while back using ng-cli. Now I realize that ng-cli provides a --mobile flag to create a project with progressive web app features. So how can I update my existing project to do the same with having to re generate the whole project again.
https://github.com/angular/mobile-toolkit/blob/master/guides/cli-setup.md
...ANSWER
Answered 2017-Apr-25 at 21:01The --mobile flag has been removed from ng-cli, unfortunately the documentation is pretty outdated. There is some work you need to do to get PWA features working which is very well explained in this recent talk at ng-conf 2017
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mobile-toolkit
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page