How to Intercept Push Notifications for Another App

Is it possible to intercept push notifications for another app?

This is not possible on iOS.

A device token is assigned to an installation of an app upon registering to receive push notifications. Push notifications are sent using these tokens as an identifier of the recipient. iOS will then deliver the notification to the app that was assigned that particular device token.

The only way to bypass this would be to do some low-level network interception using private APIs, which would most likely only give you an encrypted version of the APNS payload.

Swift: Detect and Cancel Another App's Notification

No there is no such feature on iOS. Apple goes to great lengths to prevent 3rd party apps from altering the behavior of the system or of other apps.

Is it possible to store the text in push notifications from an android app (not owned by me) in Google cloud?

As far as I am aware, the only way to directly integrate Android App Notifications with Google Cloud Platform is through Firebase Cloud Messaging [1]. However the flow is in the opposite direction (from GCP to Android), and some dependencies need to be present in the Android App folders (like google-services.json file of the Cloud Project needs to be present in the App folder). For that to happen, you need to have ownership of the app.

You can use Google Cloud Storage on Android [2] to transfer the notification data / payload, but still you need to have an app for that.

[1] https://firebase.google.com/docs/cloud-messaging

[2] https://firebase.google.com/docs/storage/android/start



Related Topics



Leave a reply



Submit