Skip to content

Instantly share code, notes, and snippets.

@FranciscoMarinho
Last active January 21, 2021 21:48
Show Gist options
  • Select an option

  • Save FranciscoMarinho/06795b9df8f65c06dd4ab11861563312 to your computer and use it in GitHub Desktop.

Select an option

Save FranciscoMarinho/06795b9df8f65c06dd4ab11861563312 to your computer and use it in GitHub Desktop.
start() {
if (this.navigator.defaultRequest) {
this.navigator.defaultRequest.start().then((connection: any) => {
this.connectionID = connection.id;
this.connection = connection;
}).catch(error => {
console.log('error ' + error.name + ': ' + error.message);
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment