I am trying to follow this apple developer article to implement share suggestions in a sample iOS project.
I have followed these 3 steps exactly as described
- Added a share extension in my app.
- Declared support for the INSendMessageIntent intent type.
- Donated an INSendMessageIntent in app and its share extension.
In the below screenshot, we can see sharing suggestions from Messages app and one other app.
The problem
Although I have followed all the steps as described in the article, my sample app is not showing as a suggested conversation when i try to share something.
Sample code
You can find the sample project on Github
What am I missing here?
Any help would be much appreciated.
Thanks in advance.
2
Answers
1- First you must add your app in suggestions list from the "More" Options. ( Only if you are not seeing your app in apps row in the share sheet )
2- Code Problem: You must provide a not nil image inside intent:
Problem:
Or, Skip Image like this to make it work:
One Interesting test, When image name doesn’t have space, it works even if image doesn’t exists:
You can see the working example here: Github
Working:
This project is only working in iOS 15.0 to iOS 15.5 but not in other versions like latest iOS 16.2, iOS 16.1 and other previou versions like iOS 14, 13.
Can anyone run this project and make sure why it is not showing intent feature in latest iOS versions.