Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ios image not working #180

Closed
jmrvm801 opened this issue Apr 5, 2022 · 4 comments
Closed

ios image not working #180

jmrvm801 opened this issue Apr 5, 2022 · 4 comments

Comments

@jmrvm801
Copy link

jmrvm801 commented Apr 5, 2022

Bug Report

Hi, I am using FCM to send a image notification to ios devices. The image is sent but its not showing in notification. Only text is received properly. Android doesn't have this problem.

I Attach my payload request:

{ registration_ids: [ "cdfD0L0fi1g:APA91bFrLmVBaGzJzuF5k4X7l7uCtgPPTbnqKYXdXGcUbIoOPbaZuVqMBjVY83_MBMpPpmUT7Ax0m8Z5HIv-hv25l9is0-DR4WB6fF1ATDt1e0KDx8BWlqy8Y-oOStBs6iCXPViXSaGI" ], notification: { title: "hola mundo", body: "descripción hola", sound: "notificacion", color: "#FFC107", image: "https://giggoer.com/wp-content/uploads/2020/03/Beatrich-2020-595x890.jpg" }, mutable-content: 1, priority: "high", data: { image: "https://giggoer.com/wp-content/uploads/2020/03/Beatrich-2020-595x890.jpg" } }

Thank you

Expected Behaviour

base_01

base_02

Actual Behaviour

base_03

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version (eg. Android 5.0 or iOS 9.2.1)

iOS 15.4.1

(Android) Device Vendor (e.g. Samsung, HTC, Sony...)

cordova info Printout

--- Start of Cordova JSON Snippet --- { "plugins": { "cordova-plugin-whitelist": {}, "cordova-plugin-device": {}, "cordova-plugin-geolocation": { "GEOLOCATION_USAGE_DESCRIPTION": " " }, "cordova-plugin-network-information": {}, "cordova-plugin-statusbar": {}, "cordova-plugin-androidx-adapter": {}, "@havesource/cordova-plugin-push": {} }, "platforms": [ "android", "browser", "ios" ] } --- End of Cordova JSON Snippet ---

Sample Push Data Payload

Sample Code that illustrates the problem

Logs taken while reproducing problem

@Paddy78de
Copy link

Hi,

you need to create an Notification Service Extension in your XCode project.

Source: invertase/react-native-firebase#2432

Hints:

I had to replace (in NotificationService.m)

#import "RNFirebaseMessaging.h"

with @import Firebase;

and I replaced the version in the Podfile from

pod 'Firebase/Messaging', '~> 6.3.0'

to

pod 'Firebase/Messaging', '~> 8.1.1'

@jmrvm801
Copy link
Author

Hi,

you need to create an Notification Service Extension in your XCode project.

Source: invertase/react-native-firebase#2432

Hints:

I had to replace (in NotificationService.m)

#import "RNFirebaseMessaging.h"

with @import Firebase;

and I replaced the version in the Podfile from

pod 'Firebase/Messaging', '~> 6.3.0'

to

pod 'Firebase/Messaging', '~> 8.1.1'

Thank you, It works correctly

@wandilf
Copy link

wandilf commented Jul 10, 2023

Good morning, can anyone tell me how to sign the Notification Service Extension to publish the IPA in stores?

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants