Does tvOS support notification facility for chat applications? - notifications

I am building a tvOS app for the new Apple TV that needs to get notifications from a server every time that a chat message is sent. This notification is also to be displayed on the Apple TV. As much as I understand push notifications are not allowed with tvOS.
With this being said, are there any alternatives to what I need?
To clarify: This is a chat app that needs to display a notification to the user on the TV screen every time a message is received by the user. The app stays running indefinitely, while showing instant notifications. - I cannot use push notifications.
Please let me know if this makes sense, and thank you in advance for your help!

We recently built an app for apple TV that shows instant messages from different clients connected to our server. A good library that will answer your requirements is socket.io-client
Just google socket.io and learn how it works. Basically, you wait for a connection on your server and then you can send messages to your clients. On the client side (tvOS in your case) you specify what methods to run as response to the different event coming from the server.
Good luck.

Related

How to get local-notification without Apns for ios in react-native?

I searched some notification library for react-native.
https://github.com/zo0r/react-native-push-notification
This works well for Android but it requires Apns for ios
I would like to find some libraries that doen not require Apns and simple.
There is no avoiding using APNS for remote push notifications.
In order to receive data in certain scenarios, such as having your app running in the background, phone being offline and later receiving a notification once it is back online, your device must have a unique app-specific device token generated by Apple. You can then use a service such as FCM or AWS SNS to deliver the notification to clients.
Also, for Android, you will need to use GCM to generate the device token.
You can, for testing purposes, you can use react-native-push-notifications' PushNotification.localNotificationSchedule to create a dummy local notification.
Here is a good tutorial for setting up remote push notifications with APNS and FCM: https://www.appcoda.com/firebase-push-notifications/.

Quick fix to solve XMPP iOS VoIP background execution rejection by appestore

I developed an xmpp ios chat application. The application requires the functionality of receiving the chat messages even if the application in background state. In order to achieve this, i used VoIP background execution to stay the user session alive instead of implementing apple push notification . The application is working fine. But the problem is that, the application is rejected by the appstore(Meta data rejection). Is there any quick way to solve this issue ??? Thanks in advance.
By giving background mode capabilities would not allow to make your app live if there is no functionality of VOIP in the app.
Use Pushkit ( Silent push notification ) like whatsapp, facebook etc chat app to keep your chat functionality in background or kill state.
Let me know if i could help you in push kit or anything else.

GCM Notification arrives after 30seconds

I am using Google development sample codes to receive GCM notifications. I have spent nearly a week to find why I receive notifications after 25~30 seconds!!! did not find any answer.
I receive other apps' notifications (such as Viber, Line and WhatsApp) almost instantly!
It has the same slow behaviour in both emulator and my Samsung Galaxy S5.
I receive respond with message ID from Google GCM server instantly when I send a notifications so it means the problem is from Google GCM server to my app.
Any help would be much appreciated.

Push notification in adobe air (android and ios) with urbanairship/parse

I am looking for a solution or a guideline for one that will enable me to register to one of the big services that enable push notification.
I know that it will be easier in IOS http://www.adobe.com/devnet/air/articles/ios-push-notifications.html
I have problem with it android even though I successfully send a push notification to android. but without registration like explained Heading here.
http://afterisk.wordpress.com/2012/09/22/the-only-free-and-fully-functional-android-gcm-native-extension-for-adobe-air/
Could someone direct me to a solution
Thanks

should iOS Instant Messaging App server send APNS(new message) on foreground

I'm creating an instant messaging application. imagine something like skype or yahoo messenger.
Now our server only sends push notification(for new messages) on when the app is on background/multitasked/minimized. But sometimes the server fails to detect that our app is on background, so sometimes it doesn't send push notification even if the app is on background.
Now I'm thinking that our server should just always send push notifications to device even if it is in foreground(so all messages will have a push notif), but we won't show it(the apns) when in foreground. This way, the server won't need to detect if the app is on background or not.
Do you think it's okay, or there will be a sideeffect of always sending apns, you see, if you are chatting whole day on foreground, the client will receive apns but won't show it?
No problem to send lots of notification without reading it, if the payload is different.
You are not forced to show notifications with an alert when a notification is received in foreground.