ios - React Native Web Bridge Redirect on notification -


hei, im developing app , i´m using webviewbridge send data between app , server. have problem when notification , app closed, want make redirect url based on data notification. code:

pushnotificationios.getinitialnotification().then(function (notification) {    if (notification != null) {      alert(json.stringify(notification));      this._onpresssendnotification(notification);   }  }); 

and

_onpresssendnotification(notification){     const { webviewbridge } = this.refs;     webviewbridge.sendtobridge(json.stringify(notification))   }, 

when send bridge notification, works fine. getinitialnotification not execute _onpresssendnotification. error on app is: " undefined not object (evaluating 'this_onpresssendnotification."

thanks


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -