Skip to content

Commit 4435155

Browse files
authored
feat(branch-io): add initSessionWithCallback method (#3660)
1 parent 380a7f7 commit 4435155

File tree

1 file changed

+10
-0
lines changed
  • src/@ionic-native/plugins/branch-io

1 file changed

+10
-0
lines changed

src/@ionic-native/plugins/branch-io/index.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Injectable } from '@angular/core';
22
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
3+
import { Observable } from 'rxjs';
34

45
export interface BranchIoPromise {
56
$identity_id?: number;
@@ -105,6 +106,15 @@ export class BranchIo extends IonicNativePlugin {
105106
return;
106107
}
107108

109+
/**
110+
* Initializes Branch with callback
111+
* @return {Observable<any>}
112+
*/
113+
@Cordova({ observable: true })
114+
initSessionWithCallback(): Observable<BranchIoPromise> {
115+
return;
116+
}
117+
108118
/**
109119
* Set Request Metadata
110120
* @return {Promise<any>}

0 commit comments

Comments
 (0)