Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Ionic push notifications with payload in "Ionic Serve" testing mode

$
0
0

You can only really test how it will work on the device ... on a device. This is made worse by the (intentionally) crippled implementation (no title, no payload, only text) of dev_push (polling to a server instead of real push). There is not much you can do about that.

One workaround is do tamper the notification object in the handler for pushes:

if(notification.title == 'DEVELOPMENT PUSH') {
  // do special stuff to the notification object here
}

What is normally sent as paycode.transaction_id I sent as the notification text (notification.text) for dev_pushes and then copy it to paycode.transaction_idin here... Works, but is very ugly.


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>