I'm trying to set up a tracker that stores text messages and push notification that I receive on my phone in a google sheets spreadsheet. I have already found a way to forward each SMS that I receive to a spreadsheet using IFTTT. Unfortunately, it seems that IFTTT does not allow you to track push notifications as well.

Question: (If it's possible) How do I set up tracking push notifications on an android phone?

  • everything is in a sqlite database somewhere, just find the file and export content? not sure maybe it is included in notifications? play.google.com/store/apps/details?id=com.evanhe.nhfree – alecxs Nov 8 '19 at 12:02
  • @alecxs thanks for the tip! I might actually do that, but I was hoping to build a more automated process, so that whenever I receive a push notification it gets forwarded to another location – titusAdam Nov 25 '19 at 12:58

Google push notifications are handled differently than SMS. AFAIK only Google Play Services app has access to all push notifications (as it receives them). Therefore getting those push notifications would require to inject code into Google Play Services, e.g. in form of an XPosed module (requires rooted device + (ed)Xposed installed).

BTW: The push notification often does not contain the actual data. It can be used to "poke" an app so that the app connects to it's backend and loads the actual data (e.g. a messenger message).

  • Thank you Robert for your reply! How much time would it take to write such code? Isn't there a service that does this? All I want is to track push notifications that I receive from sports websites, and delivery apps. – titusAdam Nov 8 '19 at 8:32
  • @titusAdam That depends on how familiar you are with app development, XPosed module development and reverse engineering of Android apps. However there is one problem: the Google Play Services app is a "moving target" it is frequently updated and if it obfuscates it's class names (have not checked it) most likely you would have to adapt the Xposed module after every update. – Robert Nov 8 '19 at 8:38
  • Sorry that I haven't accepted your answer yet. Do you think that this is an option? twilio.com/docs/notify/… – titusAdam Nov 25 '19 at 10:15
  • @titusAdam This article describes how to receive any push notification sent to the app that is being developed in the article, not to all apps system wide. – Robert Nov 25 '19 at 12:47
  • so this will only work for push notifications that are received on your own app? :) – titusAdam Nov 25 '19 at 12:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.