I have set up Charles proxy to intercept network traffic coming into an Android app running on the Android Emulator.
In Charles, Help > SSL Proxying > Install Root Certificate on a Mobile Device or Remote Browser
The regular network traffic of the app comes through Charles proxy but not the push notifications.
Is there a way to intercept the push notifications with Charles?
I've seen that the documentation says that they come through on ports 5228-5230 on HTTP. https://developers.google.com/cloud-messaging/http
I can imagine for security this might be made more difficult. I've seen this previous answer Intercept all GCM push messages(for any app) but it doesn't give any detail of why it can't be done.