Skip to content

Commit

Permalink
feat(branch-io): add initSessionWithCallback method (#3660)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximBelov committed May 11, 2021
1 parent 380a7f7 commit 4435155
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/@ionic-native/plugins/branch-io/index.ts
@@ -1,5 +1,6 @@
import { Injectable } from '@angular/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
import { Observable } from 'rxjs';

export interface BranchIoPromise {
$identity_id?: number;
Expand Down Expand Up @@ -105,6 +106,15 @@ export class BranchIo extends IonicNativePlugin {
return;
}

/**
* Initializes Branch with callback
* @return {Observable<any>}
*/
@Cordova({ observable: true })
initSessionWithCallback(): Observable<BranchIoPromise> {
return;
}

/**
* Set Request Metadata
* @return {Promise<any>}
Expand Down

0 comments on commit 4435155

Please sign in to comment.