Can I send videos to android devices using gcm? - wcf

If not please suggest me how to send videos to android devices using c#. Earlier I have succeeded using gcm I easily sent out pushnotifications to android devices. My doubt is can I sent videos to android devices using gcm?

As per my earlier comment, it is not possible to send large files via GCM (nor FCM) due to the payload size limit.
What I think you can use instead is make use of Firebase Storage, store the video from there, in the push notification, you can send a download URL, which your client app should handle.

Related

How to display an image in a expo local notification

To give more clarity on the issue, i am developing this for IOS using expo notifications and expo sdk44 in my current project.
I have a couple of questions which i failed to find the answer to in their official documentation.
Is it possible to display images in a local notification while using expo's expo-notification library?
Is it possible to send "data-only" messages to Apple devices using expo push notification service?
Thanks in advance
expo-notifications has limited features and not currently support a custom image in the notification.
In case you need a native-like notification experience, you should opt for https://notifee.app/.

How to broadcast push notification to multiple devices using react-native-push-notification and Firebase?

I want to broadcast notification to multiple devices instead of adding FCM token of each device. Currently, I am sending notification using Firebase cloud messaging to send a notification but in that, I have to add FCM client token for each device, but what I want is to broadcast message without collecting client device FCM Token.
Following versions are being used in my app
'''
"react-native": "0.55.4",
"react-native-push-notification": "^3.1.3",
'''
You have to options:
Option1:
You can create a device group and send push notifcations to a group of devices. Read more in the docs iOS device-group and Android device-group. Of course, here you need to know the id of the group.
Option2:
Create a topic, where your devices need to subscribe to. Then you can publish directly on topics. Unfortunately subscribing to topics is only supported for android when using react-native-push-notification, see react-native-push-notification#android-only-methods
As originally answered by Tim you have two options.
If you don't mind changing your notification library, you can use react-native-firebase. It covers most of the available Firebase features and is well-maintained.
Here's the setup guide for subscribing to topics

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/.

Firebase Cloud Messages never reach the device

I'm implementing FCM on Ionic 2 (AngularFire2 & Ionic Native FCM: cordova-plugin-fcm#2.1.2) currently testing iOS on an iOS 11 device.
FCM messages never arrive on the device. I get no errors from either the console sending messages or when sending messages via cURL.
I've gone through the troubleshooting steps from the Google dev advocate.
I've verified that a notification sent directly via Apple's APNS server gets delivered to the device when the app is in background, and the app when the app is in foreground. (I pulled the actual device token to test this.) i.e. APNS certificates are fine.
FCM initializes with no errors (watching the logs in Xcode) and FCM does retrieve a (seemingly) valid FCM token.
I've just ensured that all my npm modules are at the latest versions for firebase, angularFire2 and fcm.
I've verified that 'GoogleService-Info.plist' is in my resources folder
Bottom line: My APNS certificate is valid and seems to be correctly setup in the Firebase console. APNS direct messages work fine. FCM messages don't return an error, they just never get to the device. Seems to be getting lost in the FCM end.
Does anyone have any suggestions on how to further debug this?
thx.

Does tvOS support notification facility for chat applications?

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.