I followed this tutorial to create push notifications through an Angular app & nodejs service:
https://malcoded.com/posts/angular-push-notifications
My question is, will these notifications come up when the browser is closed? Or, will they come up on mobile when the mobile browser is closed?
Because, I am looking for a way to create mobile push notifications (the same type of push notifications that app's use) but from the Angular app. The goal of course it to be able to send the user push notifications while the user isn't on the Angular web app. Stuff like "Hey! A new booking has been made. Go check out your online profile quickly!"
Related
how can I send push notification from one user to another
for example I want to run my application then I open it from chrome with user1 and firefox with user2
and then send a push notification from one user to another
You may try to use Web Push technology. I've recently used it, there is a Java library for it. Relatively easy to integrate and works quite stable.
I have made a mobile app using react-native (only android for now and it is not an expo app) and I would like to add push notifications to this app. The app is some kind of a social media and when the user is on scrolling the "news feed" the mobile app makes each 3 seconds a request on the server to see if there is a new notification.
On the server is a Ruby on Rails web-app that has a small dashboard so the admin can block misbehaving users and there are some API controllers that return JSON-s for the mobile app.
So the mobile app will make a request to the notifications controller and if there are any new notifications user will see them on the react-native mobile app.
When the mobile app is closed and there is a new notification on the server the user won't see it until the mobile app is active and can make requests to the notifications controller.
Is there some way to notify the user when the app is closed? I found this service:
https://github.com/geektimecoil/react-native-onesignal
At this time I'm not using Firebase but if I have understood it correctly I will somehow need to send the new notification that is created in my Ruby on Rails web-application to the Firebase service and then will Onesignal service get it from Firebase and display it as a push notification on the users smartphone even if the mobile application is closed?
Have I understood it correctly? Is there some easier way to achive my goal or some good tutorial that will help me to implement it like described?
I have used onesignal for my application which works amazing with android and ios if you want I can share the git repo for the same. It will work like a charm as you are not using expo, it is difficult with expo
I have problem with understand how "Push Notifications on Websites" works on Iphone, Ipad, etc.
Default Browser Notifications don't work on mobile, but this: https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/NotificationProgrammingGuideForWebsites/Introduction/Introduction.html
should be work fine!
There is good documentation how to install it, but how it works on user?
As i see, it`s 2 variants:
1) Modal Window to allow using notifications in browser like it`s working with default JS Notifications.
or:
2) Link to install application in AppStore. So, user install to device application.
So, if user download application, does this application add to desktop on device as other applications? What happing when user click on icon? Does click on application on desktop activate safari and open web-site? Or is it hidden application without icons on desktop?
I try to find some sites to check examples how it will work with my iphone, but i didnt find any sites. All popular sites say: "download application and active notifications THERE and use application for website".
So, i don't need special application for my site, adaptive design is awesome for me, but i want to use notifications on iphone!
Please, help me :) Thank you!
As you noticed the document states that this feature is available on OSX not on iPad, iPhone.
We see this notifications when we open a website on Safari. For instance,
As soon as we click the allow button, our Macbook communicates with Apple Push Notification Service to establish a persistent IP connection (along with a token exchange). When the website servers send notifications to the Apple Push Notification Service it forwards that notification to our Macbook/iMac.
I am investigating using Universal Links in Push Notifications for Deep Linking into an iOS app. This is so I can future-proof for web.
A lot of the examples and tutorials assume the user will select a universal link from a web-site to deep link into an app.
I want to use Universal Links in Push Notifications instead of the regular URL Schema approach.
I have read the Apple docs
https://developer.apple.com/library/content/documentation/General/Conceptual/AppSearch/UniversalLinks.html
However, I am unclear on at this point if I am just using the Universal Link to open the App via a Push Notification, do I still need to set up all the configurations such as creating and uploading an apple-app-site-association file to the root of the web server.
Is this approach to using Universal Links in Push Notifications to Deep Link into an area of the app a recommended approach since Apple seems to be discouraging the use of URL Schema's in general or are Push Notifications a special case?
Push Notifications and Universal Links are two different animals although they both serve to get the user into the application.
With a Universal Link, Safari on the iOS device is opened first in case the app isn't installed. If the app is present, the user is immediately bounced to the app from Safari with the URL passed to the AppDelegate method application(_:continue:restorationHandler:). If the app isn't present, Safari opens the URL of the Universal Link. Setting up the apple-app-site-association file is necessary here to validate that you own the destination URL in question and can redirect users from the web site to the app instead. Universal Links are better for user-initiated interaction (clicking a link in an email, etc.)
Push notifications on the other hand communicate directly with the device over TCP/IP to pass the message from APNs to the iOS device (see APNs Overview for more info). Safari isn't involved and the user taps the notification on the iOS device (for example) to open the notification and go to the destination. Your destination isn't passed by URL like with Universal/deep links, but with extra JSON in the notification payload that you can process in your app (see Creating the JSON Dictionary for this structure). There is no apple-app-site-association with push notifications as there is no web site involved. You are communicating directly from APNs to your app and using certificates typically to ensure that only you can open your app with a push notification. Remote push notifications are great for developer-initiated interaction to engage the user.
Hope that helps clarify things!
I have a web site made with word-press. I would like to make an app of this web site, it would be a simple web view which will load the web site. The meaning of making an app is because I would like that my users receives push notifications every time a new article is published. Is that posible to do ? I don't want to make a complicated app, just something that send push notifications to the users every time the admin of the web site publish a new article/entry.
Edit to add this link which solved my problem:
https://wordpress.stackexchange.com/questions/181420/i-want-to-send-push-notification-just-after-publish-a-new-post/181422?noredirect=1#comment264953_181422
Here are a couple different ways to perform what I think you are describing:
Push - http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1
Fetch - http://www.appcoda.com/ios7-background-fetch-programming/