Skip to content

Instantly share code, notes, and snippets.

View rsevil's full-sized avatar

Rodrigo Sevil rsevil

View GitHub Profile
@rsevil
rsevil / uploadingvideo.txt
Created February 22, 2021 03:27 — forked from coolvasanth/uploadingvideo.txt
uploading video which is captured from device to server via API (works both on android and ios)
//install media capture, file chooser, file transfer, camera plugins from ionic 2 native plaugins and don't forget to add providers in
app.component.ts
import { Component } from '@angular/core';
import { NavController, NavParams,ActionSheetController } from 'ionic-angular';
import { MediaCapture, MediaFile, CaptureError, CaptureImageOptions,CaptureVideoOptions } from '@ionic-native/media-capture';
import { Camera, CameraOptions } from '@ionic-native/camera';
import { Transfer, FileUploadOptions, TransferObject } from '@ionic-native/transfer';
import { FileChooser } from '@ionic-native/file-chooser';
@rsevil
rsevil / applinks_dynamiclinks_proxy.js
Last active October 18, 2023 02:35
Dynamic links - Applinks integration
// First make sure the wrapper app is loaded
document.addEventListener("DOMContentLoaded", function() {
// Then get its webviews
let webviews = document.querySelectorAll(".TeamView webview");
// Fetch our CSS in parallel ahead of time
const cssPath = 'https://raw.githubusercontent.com/Nockiro/slack-black-theme/master/custom.css';
let cssPromise = fetch(cssPath).then(response => response.text());