OneSignal / OneSignal-Xamarin-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your Xamarin app with OneSignal. https://onesignal.com
Other
104 stars 50 forks source link

Notification Images Not Showing only in iOS #229

Closed MarcinBacic closed 2 years ago

MarcinBacic commented 3 years ago

Description: Images are not displayed when notifications with photos are sent. I check https://documentation.onesignal.com/docs/notification-images-not-showing

Environment

  1. Use OneSignal 3.10.4 of the Xamarin SDK
  2. Iphone 8 version 14.4

Steps to Reproduce Issue:

  1. Add version OneSignal 3.10.4 of the Xamarin SDK to your project
  2. Use Com.OneSignal.Sample.iOS app
  3. Attempt to receive a push notification with image https://cdn.pixabay.com/photo/2018/01/21/01/46/architecture-3095716_960_720.jpg image
  4. Receipt of notification without photo image
jkasten2 commented 3 years ago

@MarcinBacic I recommend double checking "5. iOS - Add the Notification Service Extension" to make sure this is setup correctly as it is required for image and action buttons to work on iOS notifications.

If the above is correct I also recommend following the "Troubleshooting the iOS Notification Service Extension" steps.

tanaynigam commented 2 years ago

@MarcinBacic We have a release OneSignalSDK.Xamarin-4.0.0 in which I was unable to reproduce this issue.

Please note that we have changed the package name and namespace for the SDK from Com.OneSignal to OneSignalSDK.Xamarin and would require you to remove the previous package name and add the new package name to import the SDK in your code.

Additionally, when searching for the package on nuget.org, you will be required to search for OneSignalSDK.Xamarin to import the package

closing this issue for now. Please re-open if the issue still exists