I am developing an instant messaging application and this application has a feature of making a phone call, like in other messaging applications such as WhatsApp, Signal, Telegram etc. However, when someone makes a call to me, the notification of the call screen does not show on my Apple Watch. Like so;
Apple Watch Call Screen
How can I overcome this issue?
Thanks in advance.
Related
I host a PWA website and I am trying to integrate push notifications to my users who may have the website open in a browser tab even if their phones are inactive. You notoriously can't send Push notifications to iPhones without using Apple Push Notifications service (APNs).
Seeing as the point of firebase cloud messaging (FCM) is to outsource the message handlers, I kinda assumed it would support sending push notifications to iPhones somehow via APNs, but the information here suggests you still can't do this from the web.
https://firebase.google.com/docs/cloud-messaging/js/client
Safari and iPhones don't support Push API.
According to this answer: https://stackoverflow.com/a/64576541/2116253
Option #2 may be possible if you know the device ID token, which is apparently very hard to get and perhaps not possible anymore because Apple are trying to make it harder to obtain due to security concerns.
I think the actual sending via APNs from server side is quite easy, the problem comes with the initial setup/registration and actually granting permissions that allow notifications to arrive.
So, in short, I don't mind registering my website with Apple, agreeing to terms and obtaining keys for the purpose of interfacing with APNs, but I don't want to make and distribute a whole native iOS app just to send notifications to devices about my website.
Does anybody know the correct way to achieve this in 2022 ?
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 am building a delivery app (similar to uber eats) with flutter. I want the restaurant owner to get notified whenever a new order arrives.
Basically what I need is either a non-stopping sound to be played e.g. along with the notification in the notification tray, or even better popup that displays some message. That needs to be achieved even when the phone is inactive, and even when the app is not running in the background.
However with the FCM Plugin it seems impossible to achieve this "waking up" of the app. Can anyone suggest any workaround?
I am currently working on text chat application built with Xamarin Forms, i have a requirement to display a full screen page once a chat is initiated, a whatsapp incoming call notification is an analogy here. I do have push notifications setup, so i do receive a push notification once a chat is initiated but I can't find a way to display a full screen custom page with controls to accepting/rejecting a chat. This page needs to appear in foreground mode/background mode or when the phone is locked. Any lead would be helpful. At the moment I am really keen to solve this for android.
Thanks in advance.
Our app has quite a few notification scenarios on the iPhone App which might not make sense for the Watch App. I investigated the Watch documentation to check whether notifications can be Apple Watch specific, but did not find any details. Is didReceiveRemoteNotification in the Watch code the best way to decide whether to surface a notification on the Watch?
The OS decides where to surface the notification. You have no control over it. Your iOS/Watch app can only respond if it's the lucky recipient.
No, at least for now (iOS 8.3 + Watch OS 1.0).
The phone app and its watch extension is essentially the same app. iOS will decide which notification should be presented on which device. The 3rd party app developers have zero control over this. Users can choose if all notifications from single apps are allowed to be shown on the watch.
The basic logic is: Notifications will be only delivered to the watch when the paired iPhone is locked, the screen is off, and the watch is on the wrist.