How to play notification sound in mobile website - swift

I have a WebView mobile application. So I use a website embbeded in this application.I'm searching a way to play sound notifications in mobile website when the device screen is in locked mode.
How can I do this ?
I heard that this is called as Specific Push or Web Push but I couldn't find a code for this in anywhere.
Update 1
I'm trying with Swift and Xamarin.
Update 2
I learned from here that currently Web Push is not supported by Apple.

To send push notifications you can use something like onesignal.com or create your own push server. If you use Phonegap you can send local notification, but it will only work if your app is running while phone is in sleep mode.

Related

Fetch data from socket always in background and use the data to show as a push notification in FLUTTER APP(FCM should not be used)

First of all I am completely a beginner in android native code, I started with flutter app development. My problem is with the implementation of push notification. I want to Fetch data from the socket API continuously in the background and use the data to show as push notification when my FLUTTER APP(NOT ANDROID APP) is in the background/foreground/killed.
If I am not wrong I know I have to code in native android but the thing is I am unable to find an example connecting the native java code with the flutter app(NOT android app) for push notification service. I am not searching for an FCM solution. Can anyone give me an example using plugins like the work manager, that works in the background? Moreover, in my flutter app, I want to navigate to another page when the notification is pressed.The task is like whenever the socket sends a message there will be a push notification (no matter the app is running or not), on clicking the notification the user can go to a specific page of the flutter app.

Progressive web app ios push notifications?

I noticed some blogs mentioned PWA works with IOS .. I have tried ' add to home screen and push notifications are not working ..please help me with sample demo.
In iOS 11.3, Apple included Service Worker. That's why everybody is saying that PWAs work on iOS. But unfortunately there is currently no way to send Push Notifications to a PWA running on an iOS device. Also the user needs to manually add the PWA to the home screen.
See: https://medium.com/#firt/progressive-web-apps-on-ios-are-here-d00430dee3a7
Apple is still lagging behind everyone here, even though they have had an add to homescreen functionality since 2007.
That is the answer to the add to homescreen. You need to use the mobile-web-app-capable, touch icons META tags to drive the iOS add to homescreen experience.
As for push, you will need to fallback, remember these progressively enhanced websites.
My fallback recommendation is SMS (Twilio is a good service for this).
Unfortunately, or maybe we are fortunate LOL, iOS does not support web push either.

reminders in ionic app without server code

Was anyone implemented a reminder system in an ionic app without server side code?
Basically, I'm building an ionic app (targeting Android and IOS) and I want to setup reminders. But my main problem is figuring out how to trigger them when the app is closed.
Check that plugin out : https://github.com/katzer/cordova-plugin-background-mode
This let you not put the app from sleep when exiting app.
However, this will not replace a push notification feature.

Is there a way to test Android, iPhone push notification without having one?

I need to create a push notification webservice for Android & iPhone, but I actually own an Iphone only, I'd like to be able to test on my machine the push notification.
I don't know anything to mobile device or development.
In order to push messages to Android using the Google Cloud to Device messaging (C2DM) requires an application on the device which has registered to the C2DM servers to receive push notifications. AFAIK, you cannot do a generic push (using C2DM) which will be received by all applications.
For more info on C2DM you can look at the documentation here and a good article can be found here.
You could download the Android SDK. It gives you the basic stuff you need to get up and running.
If you want a virtual machine, you can set one up using this guide. I set this up and it was pretty painless. I don't know how current it is, but it will at least get you something to work with.

Reminder feature in iPhone Native Application

In my native iPhone Application, I have a requirement to add a reminder to the user's iPhone Device.
Is it possible to implement this feature using current iPhone SDK ?
Or else is there any other way to implement this feature ?
Thanks in advance...
You need to use Push notifications. The steps involved in doing this are too lengthy and involved to list in this answer. Familiarize yourself with Apple's documentation. You will need a Push notification server or pay a service to handle the Push Notification server for you (such as iLime)