iOS notification with large icon using Unity Mobile Notifications Package
Hello!
I want to add large icon (a small picture on the right side of the notification) to local notifications using the Unity Mobile Notifications Package. It is quite clear how to do this on android, but I can't figure out how to do this for iOS using the package?
I think I have to add it as iOSNotificationAttachment, but I have no idea what kind of string should I feed it or where should I place the image in the project.
Any help please? :)
Answer by sleepy_sima · Apr 05 at 09:32 AM
I figured it out!
So the picture that you want in the notification has to be in the folder StreamingAssets in the Unity project. Then you add it as attachment to the iOS notification using the package as the string url like this:
"file://" + Path.Combine(Application.streamingAssetsPath, "pictureName.png")
Your answer
Follow this Question
Related Questions
Cannot obtain apns token in Unity 5.4.0 2 Answers
How to cancel iOS LocalNotification? 1 Answer
Use UserNotification (iOS 10) in C# 0 Answers
Sun gradient looks different on an iPad? 0 Answers
Creating game on Windows and using Unity Cloud Build for iOs. 0 Answers