Skip to content

Instantly share code, notes, and snippets.

View danichim's full-sized avatar

Dan Ichim danichim

View GitHub Profile
@jevakallio
jevakallio / COURSE.md
Last active July 24, 2022 02:37
React Native For Beginners

Introduction

React Native makes it possible to make native iOS and Android mobile apps without needing to know any iOS or Android programming - just JavaScript!

In this course, we'll write a simple mobile app that you can run on your own phone and share with your friends!

Prerequisites

In order to take advantage this course, you should have the following experience.

@hawlik
hawlik / serwice-worker.js
Created January 4, 2017 23:00
service worker redirect to browser tab on push notification click event
//browser push notification "onClick" event heandler
self.addEventListener('notificationclick', function(event) {
console.log('[Service Worker] Notification click Received.');
event.notification.close();
/**
* if exists open browser tab with matching url just set focus to it,
* otherwise open new tab/window with sw root scope url
*/
event.waitUntil(clients.matchAll({