I'm using Google Play services to make a turn-based game. When a user invites friends or takes a turn while playing, Google will send a notification, but it can't directly open my game (instead, it will open the Google Play services app).
Can I modify that notification?
Can I use Parse to push my own notifications instead of using Google's default notification?
Thank you very much!
Your notification has to be handle in app side.
In notification you are sending some data may be in form of json,you have to parse data and using NotificationManager you can customise your operation i.e. open the app or open google play service.
Related
Most tutorials I've seen on the topic of notifications either broadcast notifications through the Firebase Console, or create in-app notifications that don't work if the app is in the background or is closed completely.
Is there a way to make notifications pop up dynamically using Flutter and Firebase even when the app is closed? Something like Whatsapp or Instagram notifications.
Reference image for what I mean by notifications like Whatsapp: https://www.techidence.com/wp-content/uploads/2020/10/WhatsApp-Nootifications.jpg
You won't be able to generate dynamic notifications directly from Flutter. Since to do this, the App has to be active. Usually you would send these kind of notifications from some kind of backend. Google Cloud Messaging exposes an API for this, which allows you to send POST requests to an Endpoint, and Google handles the sending of the actual notification.
Check this article under the point "1. Send Notification"
https://medium.com/#selvaganesh93/firebase-cloud-messaging-important-rest-apis-be79260022b5
I have a Xamarin.Forms app. In it, I implemented video chat functionality (that supports iOS and Android) using IceLink. The video chat works when both the caller and the recipient have their apps open. Now I wonder how I can make a call to a device which has the app not open.
For Android
You can send notification by Firebase Cloud Messaging when device do not open, click the notification to open your application, show the video chat page.
If you use a high priority FCM for an app, it will allow that app to run services in the background for a short period of time. This would be a good alternative to having a background service that polls an app in the background:https://learn.microsoft.com/en-us/xamarin/android/app-fundamentals/services/#background-execution-limits-in-android-80
For iOS
You can refer to Jack's reply.
https://stackoverflow.com/a/60001529/10627299
I have completed an e-commerce app in ionic3. The problem is I want user to be notified when new offers or deals are added in our inventory. This should be a backend process, whether or not the app is open or close.
Note: There is no firebase involved.
If you want to use to get notification in same device then you can try Local notification native plugin for notification and if you want to send notification to other device then you have to use Push or FCM or Onesignal and yes this all required firebase to send push notification to generate device id/key.
Is it possible to send an individual push notification to a specific user of webview Android application?
I have a webview based Android application. Android 8 blocks all background processes and my application can not anymore check for messages every 5 minutes and to show push notifications is there are new messages. As I understand almost the only solution is to use firebase to show notifications.
My question is: can I send individual Firebase notifications to webview application users? If yes, how? People who login to my website from Android phones, enter their data in a login form that loads my website. It's not a Android login form. How can I at the same time login to Firebase and how Firebase will know that this user is already logged in if it's only a webwiew application?
A webview is not capable of directly receiving Cloud Message payloads. The only browsers that works with Cloud Messaging are those that support the Push API.
What you can do instead is receive the payload in the native layer of your Android app (using a normal Android integration with a service that receives the payload), then proxy it to your webview as needed, using webview's ability to inject javascript into it (while it's visible). This definitely is not a trivial amount of work.
In the Facebook Analytics document, it said the Push Notification could deep link to a certain page in the app, but I cannot find how to setup the deep link in the "Push Notification" campaign.
Does anyone how to set it up?
Thanks
Facebook Analytics supports two types of push campaign - standard push notifications and in-app notifications.
For standard push notifications, if you want to deep link you'll need to manually configure the push payload by enabling 'Attach JSON Data' (see here for iOS docs on payload). This existing stackoverflow answer explains how to deep-link in push - Deep Linking iOS Push Notifications. Basically you include some meta data that you handle in your app yourself and take the appropriate actions. See screenshot below with productIdToOpen parameter.
For in-app notifications it's even easier. Assuming you've already setup a scheme for your app to handle deep-links from the web, you can just configure one of the buttons to use that scheme. See the screenshot below.