- change app icon
- open installed app from external link
- security config to send xhhtp request in android < 9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | Code | Constant | Reason Phrase | | |
// | ---- | ------------------------------- | ------------------------------- | | |
// | 100 | CONTINUE | Continue | | |
// | 101 | SWITCHING_PROTOCOLS | Switching Protocols | | |
// | 102 | PROCESSING | Processing | | |
// | 200 | OK | OK | | |
// | 201 | CREATED | Created | | |
// | 202 | ACCEPTED | Accepted | | |
// | 203 | NON_AUTHORITATIVE_INFORMATION | Non Authoritative Information | | |
// | 204 | NO_CONTENT | No Content | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const algorithm = 'aes-256-ctr' | |
const secretKey = '654sd656s5ds5d4sd4s5d4sd' | |
function encrypt(string) { | |
const iv = crypto.randomBytes(16) | |
const cipher = crypto.createCipheriv(algorithm, secretKey, iv) | |
const encrypted = Buffer.concat([cipher.update(string), cipher.final()]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// [START initialize_firebase_in_sw] | |
// Give the service worker access to Firebase Messaging. | |
// Note that you can only use Firebase Messaging here, other Firebase libraries | |
// are not available in the service worker. | |
importScripts('https://www.gstatic.com/firebasejs/3.5.2/firebase-app.js'); | |
importScripts('https://www.gstatic.com/firebasejs/3.5.2/firebase-messaging.js'); | |
// Initialize the Firebase app in the service worker by passing in the | |
// messagingSenderId. | |
firebase.initializeApp({ |