-
Notifications
You must be signed in to change notification settings - Fork 428
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
Unable to receive images in iOS notifications. #919
Comments
Thank you for reporting the issue. Yes, I can reproduce the issue with quickstart on iOS as well. Based on the Firebase iOS SDK doc, seems like there are several extra steps in Xcode to make it works, ex. Notification Service Extension. The Xcode project generated from Unity is slightly complicated since it has two different targets, |
@adityathoutam As @chkuang-g mentioned, setup Notification service extension is a required step and you need to call the Messaging ExtensionHelper API inside the extension. |
@chliangGoogle As @chkuang-g mentioned, Unity creates two different targets UnityFramework and Unity-iPhone. def shared_pods target 'UnityFramework' do target 'Unity-iPhone' do |
@chkuang-g can you try it in unity and see if this is reproducible. |
In regular iOS app, the Messaging needs to be installed inside service extension as well: https://github.com/firebase/firebase-ios-sdk/blob/master/FirebaseMessaging/Apps/AdvancedSample/Podfile @chkuang-g will test on unity to see if it's the similar case. |
Yes, I noticed that Unity generates multiple targets and has I have not try to set it up yet but I think that should be align with this sample. https://github.com/firebase/firebase-ios-sdk/tree/master/FirebaseMessaging/Apps/AdvancedSample Will keep you updated. |
Alright, finally had a chance to crack this. Here are all the steps you need to make it work. This has been tested with our quickstart project.
And that's it. Should be working by now. I can see several issues here.
Let me know if this helps. At the meantime, I will change this to a Shawn |
[REQUIRED] Please fill in the following fields:
[REQUIRED] Please describe the issue here:
Unable to receive image notifications (rich) via console, sent to the Unity App
(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)
Steps to reproduce:
Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)?
What's the issue repro rate? (eg 100%, 1/5 etc)
100%
What happened? How can we make the problem occur?
This could be a description, log/console output, etc.
If you have a downloadable sample project that reproduces the bug you're reporting, you will
likely receive a faster response on your issue.
Relevant Code:
The text was updated successfully, but these errors were encountered: