We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b97cf1f commit 63e5ac6Copy full SHA for 63e5ac6
README.md
@@ -185,16 +185,14 @@ The `initSession()` method automatically sets an internal deep link hander whose
185
186
```js
187
onDeviceReady: function() {
188
- Branch.initSession().then(function (res) {
189
- console.log(res);
190
- alert('Response: ' + JSON.stringify(res));
191
- }).catch(function (err) {
192
- console.error(err);
193
- alert('Error: ' + JSON.stringify(err));
194
- });;;
+ Branch.initSession();
+},
+onResume: function() {
195
},
196
initialize: function() {
197
document.addEventListener('deviceready', onDeviceReady, false);
+ document.addEventListener('resume', onResume, false);
198
199
```
200
0 commit comments