parse-server-modules / parse-server-sns-adapter

Parse Server SNS Adapter
18 stars 14 forks source link

Push Notifications No Payload #15

Open vincenzoarieta93 opened 5 years ago

vincenzoarieta93 commented 5 years ago

Hi. I've integrated parse-server-sns-adapter and configured AWS SNS, but I still haven't managed to get it working. In fact, although messages are being sent from AWS correctly, my Android app receive push notifications with no payload.

My Android app's Manifest is the following one:

<service
    android:name="com.parse.fcm.ParseFirebaseInstanceIdService"
    android:exported="true">
    <intent-filter>
        <action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
    </intent-filter>
</service>

<service android:name="com.parse.fcm.ParseFirebaseMessagingService">
    android:name=".push.MyFirebaseService"
    android:exported="false">
     <intent-filter>
         <action android:name="com.google.firebase.MESSAGING_EVENT" />
     </intent-filter>
 </service>

<receiver
    android:name=".push.WSParsePushBroadcastReceiver"
    android:exported="false">
    <intent-filter>
        <action android:name="com.parse.push.intent.RECEIVE" />
        <action android:name="com.parse.push.intent.DELETE" />
        <action android:name="com.parse.push.intent.OPEN" />
    </intent-filter>
</receiver>

where WSParsePushBroadcastReceiver is a subclass of ParsePushBroadcastReceiver. Is that right? Or do I have to use other Services handling incoming push notifications? Is so which one?

Thanks in advance