React native AWS Amplify向React本机应用程序发送的PushNotification中缺少图像

React native AWS Amplify向React本机应用程序发送的PushNotification中缺少图像,react-native,push-notification,aws-lambda,aws-amplify,aws-pinpoint,React Native,Push Notification,Aws Lambda,Aws Amplify,Aws Pinpoint,我的应用程序有一个恼人的问题已经好几天了。 这是一款针对Android和iOS的React原生应用程序。应用程序接收推送通知,这些通知使用lambda函数通过Pinpoint API发送。除了推送通知的设计之外,几乎所有的功能都能按预期工作。我按照放大说明设置应用程序:。 如果我直接从Pinpoint向我的应用程序发送消息,我有可能附加媒体URL(图片),这些URL应该按照我在推送通知中理解的方式显示。但他们不会。。。谁能帮我解决这个问题吗 AndroidManifest.xml 我也有同样的问

我的应用程序有一个恼人的问题已经好几天了。 这是一款针对Android和iOS的React原生应用程序。应用程序接收推送通知,这些通知使用lambda函数通过Pinpoint API发送。除了推送通知的设计之外,几乎所有的功能都能按预期工作。我按照放大说明设置应用程序:。 如果我直接从Pinpoint向我的应用程序发送消息,我有可能附加媒体URL(图片),这些URL应该按照我在推送通知中理解的方式显示。但他们不会。。。谁能帮我解决这个问题吗

AndroidManifest.xml


我也有同样的问题。虽然我在日志上收到图像url,但图像不会显示在通知中。
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.notificationapp">

    <uses-permission android:name="android.permission.INTERNET"/>

    <application
            android:name=".MainApplication"
            android:label="@string/app_name"
            android:icon="@mipmap/notificationapp_icon"
            android:roundIcon="@mipmap/notificationapp_icon_round"
            android:allowBackup="false"
            android:theme="@style/AppTheme">

        <service android:name="com.amazonaws.amplify.pushnotification.RNPushNotificationMessagingService">
            <intent-filter>
                <action android:name="com.google.firebase.MESSAGING_EVENT"/>
            </intent-filter>
        </service>
        <!-- [END firebase_service] -->
        <!-- [START firebase_iid_service] -->
        <service android:name="com.amazonaws.amplify.pushnotification.RNPushNotificationDeviceIDService">
            <intent-filter>
                <action android:name="com.google.firebase.INSTANCE_ID_EVENT"/>
            </intent-filter>
        </service>
        <receiver android:name="com.amazonaws.amplify.pushnotification.modules.RNPushNotificationBroadcastReceiver"
                  android:exported="false">
            <intent-filter>
                <action android:name="com.amazonaws.amplify.pushnotification.NOTIFICATION_OPENED"/>
            </intent-filter>
        </receiver>

        <activity
                android:name=".MainActivity"
                android:label="@string/app_name"
                android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
                android:windowSoftInputMode="adjustResize">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
        <activity android:name="com.facebook.react.devsupport.DevSettingsActivity"/>
    </application>

</manifest>
GCMMessage: {
    IconReference: 'ic_stat_warning',
    Action: 'OPEN_APP',
    Title: row.userAssetId+", ID: "+row.title,
    SilentPush: false,
    Body: row.body,
    ImageUrl: 'https://cdn4.iconfinder.com/data/icons/8-bit/160/bit-12-512.png',
    SmallImageIconUrl: 'https://cdn4.iconfinder.com/data/icons/8-bit/160/bit-12-512.png'
}