File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 122
122
},
123
123
branchInit: function() {
124
124
// Branch initialization
125
- if (data['+clicked_branch_link']) {
126
- // read deep link data on click
127
- console.log('Trigger DeepLinkHandler()')
128
- alert('Deep Link Data: ' + JSON.stringify(data))
125
+ Branch.initSession(function(data) {
126
+ if (data['+clicked_branch_link']) {
127
+ // read deep link data on click
128
+ alert('Deep Link Data: ' + JSON.stringify(data))
129
+ }
129
130
});
130
131
}
131
132
};
180
181
181
182
import { TabsPage } from '../pages/tabs/tabs';
182
183
183
- // Branch import
184
- declare var Branch;
185
-
186
184
@Component({
187
185
template: `<ion-nav [root]=" rootPage" ></ion-nav >`
188
186
})
204
202
const branchInit = () => {
205
203
// only on devices
206
204
if (!platform.is('cordova')) { return }
205
+ const Branch = window['Branch'];
207
206
Branch.initSession(data => {
208
207
if (data['+clicked_branch_link']) {
209
208
// read deep link data on click
You can’t perform that action at this time.
0 commit comments