iOS 10 GameCenter Invites via Messaging - ios

We were utilising Turn Based Games via GameCenter since iOS 6, once it was introduced (running absolutely same code for years).
However, since iOS 10 invites do not work any more. The person being invited does receive a message in Messages saying "Invitation to play %game_name$".
No invitation push notification delivered to game itself (new turn notifications are delivered successfully).
No new game appears in current game list to accept invitation (we use standard GK*ViewControllers) as it was displayed before.
If the user tap the message in Messages an alert view with "Retrieving..." text is displayed for a short period of time and nothing happens.
Apple states (https://developer.apple.com/videos/play/wwdc2016/611/) no code changes are needed. But it's definitely broken (or "no changes" statement is false).
Any ideas, colleagues?

Invitations via iMessage don't work when the two devices use the same iCloud login. I was experiencing the problems you described until I changed the iCloud login to match the iMessage login on each device.

Have you succeed with Game center invitation through iMessage in iOS10? I have the same issue and i thing that we should rather use GKGameSession which is a iCloud based invitation.

Related

How to detect if a MSMessage is sent to someone who does not have iOS10?

I created an iMessage app for iOS10. My app can send messages to non iOS10 users but it does not have any interest (it just sends a non interactive image).
Is there a way to detect that my the remote participant in my MSConversation does not have iOS10 and display a more user friendly message?
If I understand well, you want to know if the iMessage was received or something by the non iMessage app? In that case it's not directly possible within iMessage app as MSConversation is only available in iMessage extensions. You'll have to do this with a server side ;)
Edit:
On earlier version, iOS will display a placeholder message indeed, but there are actually no ways to handle that, has the SDK is not available for these versions. So the answer is unfortunately still NO, Sorry :/

How to get notification badge number from one app to another ios

I have an app with a tableView which have the entries with names whatsapp, messenger, slack etc. Now take Whatsapp for example when you tap on it it'll open whatspp via deep linking.I want to show notifications sum, which user has received on his whatsapp, onto my app. After searching around I came to knew that this is not possible to get push notifications of one app to another it's a server to server thing and many other explanations.But my question is if notifications have been received on whatsapp can I get the badge number and sum it and show it in my app? This screenshot will show more:
So the 12 is coming from whatsapp as a sum of total unread messages you can say. So how to achieve that?
UPDATEI found these links which says that it might be possible.How to catch all push notifications from other apps on iOS using private frameworks?How can I receive push notifications of an other app?
No it is not possible. Because Whatsapp is another app. So there is no linking between them. The apple security your app can not gets any other app information.
In latest iOS, they've loosened that up a bit. For example, the iOS programming guide now has a section on passing data between apps by having one app claim a certain URL prefix, and then having other apps reference that URL. So, perhaps you set your event app to answer "event://" URLs the same way that a web server answers for "http://" URLs.
see this document:enter link description here

Send Facebook message via iOS app (in background)

I'm building an iOS app that allows users to "invite friends" to fun events they're planning within the iOS app. One way to invite a friend is via SMS (we use Twilio and it sends out the message "John has invited you to Soccer Game" in the background).
Can we do this with FB Messages/Messenger? So if you don't have someone's phone # but you are connected to them via FB, can we send a Messenger message in the background?
(All I've found so far is App Requests but they seem to popup an ugly dialog box asking the user to hit "send" when done).
There is the Chat API, although it´s not built for auto messages but for...well, chats: https://developers.facebook.com/docs/chat/
"Please do not use this API to send spammy messages to users. Facebook
takes user experience and spam extremely seriously and if users report
your app as using the Chat API to spam them, we will disable your
app."
Afaik that is the only way to use the message inbox without any popup, but i would suggest not even thinking about going that way as it would surely be spam (=unrequested advertisement) and Facebook would definitely remove your App sooner or later ;)

Notify Facebook users from iOS app

My iOS app gives the user the option to login using their Facebook account. I would like to be able to see the list with all the friends and invite the ones selected to use the app. The problem is that using the app request window, the friends get a notification that is displayed somewhere in the App Center, rather than in the Notifications panel. Unfortunately, this sort of notification is very subtle and might not be seen only after a long time.
From obvious reasons, I cannot fetch the emails of friends as this would be a great alternative.
Do you know if there is a way to send a Facebook Message or some other sort of notification that is more 'visible' to the receiver? Thanks!
I'm not sure if I completely understand your problem. If it's the problem that I think you're having, it sounds like you need to fill out more information on your Facebook App's configuration page.
From what I remember when I had this same issue, you need to have a Canvas URL set in your Facebook App's configuration page. Even if your app is not going to use Canvas, you need to have that part filled out in order for your friends to receive the app's notification jewel on Facebook.

iOS not receiving user to user app requests

I am sending app requests from an iOS native app using Facebook SDK dialog. I have created a canvas app and set the iTunes ID (using a valid ID from a different app in the store now, since mine is not). The requests arrive at desktop www site, and show up under "App and Games>Invites from friends". But, they do not show up on iOS native Facebook app, unless I first do Facebook SSO with my app. Then, my app bookmark appears in FB, and new requests increment the counter.
How do I get the requests to show up on iOS before my app is installed? Other peculiar thing that may be related, is I get no activity under "Notifications" on iOS, only the app bookmark. On desktop, I see the Notifications globe flash with a red badge at first logon, but then the badge goes away and nothing is there, although the requests appear under "Apps and games". This seems not totally consistent as some people who have tested my app get the expected Notification behavior, but I never do on my own FB account. Could it be because if added and removed the app repeatedly for testing?
Any clues?
My problem seems to have been something fouled up in the Facebook database, probably as a result of my various misfires in early development. At some point it began working correctly without any changes on my end.

Resources